Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Pages: [1] 2  All

Author Topic: 3D actor still visible when behind an object?  (Read 10872 times)

0 Members and 1 Guest are viewing this topic.

Dr.Gonzo

  • Next please!
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • View Profile
3D actor still visible when behind an object?
« on: May 30, 2007, 07:30:42 PM »

Got a total noob question;  ::)

I tried to follow the Trinity demo to where she's behind the crates and is
"covered" by the crates as she should be.

When I try to do this in my first test scene, I get wierd results:
There is a tree in my scene, and I created a sprite entity (just like
the crates in the trinity/front scene) and placed it on top of my
rendered tree so the actor would be invisible when walking behind
the tree.

What I'm getting is this:


The guy is still visible when he's behind the tree, he's fine when he's a little in front
of it, and then he's covered by the sprite when he's closer to the camera.

Obviously, my tree-sprite isn't placed right. But how do I place it correctly?
I searched the docu and the forum but I can't find an answer on how to fix that.

Anyone, please?

(I gotta say that I feel like a total tool in this forum.. Aren't there any other beginners
here to ask stupid questions as well?? It seems like everyone else here is years ahead
of where I am right know. Is there some additional documentation around that I don't
know of and that gives all these answers to someone who is new to WME? ???)




Logged
Dr.Gonzo

design3d

  • Sci-Fi fan
  • Supporter
  • Regular poster
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 156
  • I, Driller :)
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #1 on: May 30, 2007, 11:03:42 PM »

Hi Dr.Gonzo

Another noob Q for you from me ::wave
Where is the "hot spot" of the tree sprite placed? It should be somewhere in the centre of the root of tree. I think.

Believe this is what forum for: to ask questions about things you don't get from documentation. ;)

Off-topic: Is it ok to say "total tool" at all? Just curious in terms of colloquial speech. ???
« Last Edit: May 30, 2007, 11:31:38 PM by design3d »
Logged

Dr.Gonzo

  • Next please!
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #2 on: May 31, 2007, 07:54:09 PM »

Hi Dr.Gonzo

Another noob Q for you from me ::wave
Where is the "hot spot" of the tree sprite placed? It should be somewhere in the centre of the root of tree. I think.

I'm glad to see that I'm not the only nOOb in here..  ;)

I tried moving the hot spot, but that doesn't seem to have an effect as far as
the actor appearing in front or behind a sprite goes.

...several hours later...

I finally got it to work by adding a "walk behind" region to the scene.
Why does it work know? I don't know..
Looking at the trinity demo, there is no "walk behind" region in the scene
and yet she's still partly invisible when she's behind the crates.

I swear, this is like pulling teeth without a complete documentation..  :-[
Logged
Dr.Gonzo

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: 3D actor still visible when behind an object?
« Reply #3 on: May 31, 2007, 09:00:59 PM »

It should work without the behind region, though. As design3d said, you should edit the tree sprite and move the hotspot (i.e. some kind of base point of the sprite) to the bottom part of the tree, to the point where the tree touches the ground, like this:



Then the z-sorting will work as expected (you still need at least one region in the scene, though).
If you look at wme_demo_3d, you'll see the crates sprite does the same. So does the chair in wme_demo.

I swear, this is like pulling teeth without a complete documentation..  :-[
Have you read the scene creation tutorial in the docs? It goes to great lengths to describe the concepts.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

design3d

  • Sci-Fi fan
  • Supporter
  • Regular poster
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 156
  • I, Driller :)
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #4 on: June 01, 2007, 01:36:37 AM »

Have you read the scene creation tutorial in the docs? It goes to great lengths to describe the concepts.
Agree. I've found it very usefull to go through 2d part of documentation even when I'm gonna play only with 2.5 capabilities of the engine. Helps a lot  ::thumbup
Logged

Dr.Gonzo

  • Next please!
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #5 on: June 01, 2007, 07:09:32 AM »

Yes, I have read the documentation (so far up to the "Scripting" section) and went through the
scene tutorial.
The tutorial however is using a 2D actor and doesn't fully translate into using a 3D actor.
Regions vs a .3ds geometry etc.. So not everything involved in using a 3D actor can be
learned from the tutorial, as good as it is.

I had located the sprites hot spot at the base of the tree trunk as was suggested here,
following the crates.sprite example, and it didn't work right.

Part of the problem is that I seem to be getting inconsistant results;
I was able to get it to work using a region around the tree.
Just now I disabled this region in sceneEdit and ran the game again and it still
worked! Nice!
I went into sceneEdit again and deleted that region, ran it again and now it doesn't work!
My actor gets covered up by the sprite when he's standing well ahead of the tree.
How can that be?? Do I have to reload the project in projectManager everytime I make a
change to a scene and saving it in sceneEdit?

Is the problem the location of the tree? It's far in the back of my scene:



I appreciate your answers!  :)
Logged
Dr.Gonzo

design3d

  • Sci-Fi fan
  • Supporter
  • Regular poster
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 156
  • I, Driller :)
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #6 on: June 01, 2007, 07:37:07 AM »

Is the problem the location of the tree? It's far in the back of my scene:

Let me take a wild guess. Maybe it has something to do with z-sorting of the scene? Have you tried to look at 3d objects through "Display scene geometry" to see is camera FOV correct? Perhaps overriding exported FOV with manual one will cure the problem.
Anyway I would try that :)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: 3D actor still visible when behind an object?
« Reply #7 on: June 01, 2007, 05:48:05 PM »

No no, there's no relation to the scene geometry. To recap, you need to:

1) create a scene
2) the scene has to contain at least one region, covering the walkable area
3) create a free entity "tree" and assign it a sprite which has its hot spot positioned at the bottom of the tree
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Dr.Gonzo

  • Next please!
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #8 on: June 01, 2007, 06:20:14 PM »

Well, maybe the reason for the problem I'm having is that I'm still working
on a modified version of the 3D Trinity demo. I just gave it a new background,
geometry and actor, to get the hang of it.

I will take the plunge and try to create the whole environment by myself, from
scratch. This will take a while but I'll let you guys know how it went.

As far as my current test scene goes; it does have a walk plane and the tree
sprite is a free entity, with the hot spot at the bottom.
But since this was just a first test, I'm not to worried that it didn't quite work
as expected.

Here's my current scene with geometry; the tree.sprite, blocked region and "behind the tree" region:


Logged
Dr.Gonzo

design3d

  • Sci-Fi fan
  • Supporter
  • Regular poster
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 156
  • I, Driller :)
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #9 on: June 03, 2007, 11:33:02 PM »

Ok. I've proved I am nOOb  :D

I studied your screenshot, Dr.Gonzo. Have not noticed a "walkable area" Mnemonic mentioned though, only 3d walk plane (the biggest blue one).
Logged

Dr.Gonzo

  • Next please!
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #10 on: June 04, 2007, 02:00:43 AM »

As far as I can tell, a 3D walk plane will serve as a walkable area, no?

Are you working on a game right now?

 ::beer

Logged
Dr.Gonzo

design3d

  • Sci-Fi fan
  • Supporter
  • Regular poster
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 156
  • I, Driller :)
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #11 on: June 04, 2007, 03:35:44 AM »

Yes, 3d walk plane serves as walkable area. But it has to be covered by at least one layout region as well (in Trinity demo it is so).

For now I just study WME in spare time as hobby. And you? :)
Logged

Dr.Gonzo

  • Next please!
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #12 on: June 04, 2007, 04:51:15 PM »

Yes, 3d walk plane serves as walkable area. But it has to be covered by at least one layout region as well (in Trinity demo it is so).

Well, I think you're right!  :) I just tried it out and it works well. From the docu I had
gotten the impression that the 3ds geometry pretty much includes all the necessary
objects and regions. I guess I was wrong.
That's why I wish there would be a separate tutorial that deals with 3D actors in detail.
I would think that the majority of games developed with WME are using 3D actors?

For now I just study WME in spare time as hobby. And you? :)

I'm trying to get a game started for real. I have several ideas, but like most beginners
I guess, I'm still in shock over how difficult this really is..  ::)
« Last Edit: June 04, 2007, 05:05:10 PM by Dr.Gonzo »
Logged
Dr.Gonzo

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: 3D actor still visible when behind an object?
« Reply #13 on: June 04, 2007, 05:15:43 PM »

The process is actually quite similar for 2D and 2.5D scenes, especially now when you can use 2D pathfinding even for 3D characters. It was a design goal to make the 2.5D scenes creation as close to 2D scenes as possible.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Dr.Gonzo

  • Next please!
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • View Profile
Re: 3D actor still visible when behind an object?
« Reply #14 on: June 04, 2007, 06:21:33 PM »

The process is actually quite similar for 2D and 2.5D scenes, especially now when you can use 2D pathfinding even for 3D characters. It was a design goal to make the 2.5D scenes creation as close to 2D scenes as possible.

Thanks Mnemonic, that clears that part up for me.
I guess I'd gotten the wrong understanding on how 2D vs 2.5D works.
Logged
Dr.Gonzo
Pages: [1] 2  All
 

Page created in 0.065 seconds with 24 queries.