serious lightmap problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mark01
Posts: 32
Joined: Sat Sep 08, 2007 1:27 am

serious lightmap problem

Post by mark01 »

hello,

Im now struggling with this problem for a while and I wonder if someone could help me.
My UVW Maps are totaly displaced when Im rendering some compound cylindrical objects.
with flat objects like boxes or planes I never had problem at all.

Im moddeling whit 3dsmax, render to texture and export it with the my3d plugin. curiously when mapping such an object it affects other compound object mappings in the environment and displaces them.

Seams like the UVW Map somehow roted or moved while loading the engine so I have many black spots on the map.
Now matter how hard I try, in this case I only get one object map rendered correctly, but not all together.

The cylindrical objects are attached together, also the objects that are influenced so perhaps this somehow causes the problems but because of performance problems I cant render them seperately.

If someone has an conclusion or idea to this I would be very thankfull
mark01
Posts: 32
Joined: Sat Sep 08, 2007 1:27 am

Post by mark01 »

please help !!
If you need I would also upload a screenshot ,but I dont know how to upload things
mark01
Posts: 32
Joined: Sat Sep 08, 2007 1:27 am

Post by mark01 »

Im very sad but I think I have to choose another engine because Irrlicht isn't able to handle such a huge project. Id really like to finish it with irrlicht because I thought it is a good engine and there would be also an enormous public effect on the engine due to presenting my project to a lot of people.

The Lightmap Problem is following me since the beginning but the main reason is the performace problem which Im not able to handle.
I reduced my polys and objects to a minimum and tried to seperate them in several scene nodes but Im not able to get a satisfying Frame Rate.
Whit the octree activated it gets obviously better in some areas but in other with more complex objects it slows down to 1 FPS again.

Therefore its not possible to render the complex objects which cause the lightmap problems seperately.
I think the problem with the lightmaps its a kind of bug. If rendering complex objects I found lightmpas from other objects affected that have been rendered long before.
Seems kind of a very strange problem.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

A screenshot could well help people see what the problem actually is :)
Image Image Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Right now you only described a 3dsmax problem. That's probably why no one could help. I was even almost moving this to the graphics forum. So give us some more information.
One guess is that you use texture coord scaling. That's not supported in my3d, simply because the format does not handle texture coord transformations. We had this problem some weeks ago already. It's a flaw in the format, not in the apps (neither the exporter, nor Irrlicht).
mark01
Posts: 32
Joined: Sat Sep 08, 2007 1:27 am

Post by mark01 »

first I also thought it has to be a 3dsmax problem but how is it possible that other, old maps are affected from a displaced map Im loading in the engine.
That made me think its not only a 3dsmax problem but some incompability with the engine.
What do you mean by texture coordinat scaling? I only use a normal UVW Map modyfier on the Objects and then render it with the standard options. This never was a Problem with simple Objects but only with the more complex ones.

I also try to figure out why only this Objects cause the problem. I think in this model I attached some cylinders to some boxes and then render all togehter, maybe this causes a problem somehow.

I would love to post a picture but I have no own webspace and unfortunately dont now how to upload here
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

get an account on a photo hosting website such as photobucket.com
Image Image Image
mark01
Posts: 32
Joined: Sat Sep 08, 2007 1:27 am

Post by mark01 »

I dont know if this helps but here is the picture

http://i224.photobucket.com/albums/dd14 ... a/bild.jpg

the problem appeared while loading the lightmap of the object on the right side into the engine. The maps of the boxes on the left have been also displaced after loading the lightmap of the object on the right. Before that they have been fine. And even if it looks like its not the same material.
Umbra
Posts: 19
Joined: Sun Aug 26, 2007 12:54 pm

Post by Umbra »

have you tryd to use any other 3d format then my3ds ?
mark01
Posts: 32
Joined: Sat Sep 08, 2007 1:27 am

Post by mark01 »

No, I haven't. Which one do you recommend?

Im also wondering if its possible to add some dynamic load points into the scene. The engine isn't able to handel the hole scene in one node.
But exporting to different meshes and deviding them into different scene nodes also effected no improve, always provided that I did nothing wrong.

If someone has an suggestion how to improve framrate or fix the problem with the my3d maps please let me know
Umbra
Posts: 19
Joined: Sun Aug 26, 2007 12:54 pm

Post by Umbra »

You can do as we do in our project and devide the "map" into a matrix and then load the "map" as you progresses. like you have a matrix around you with lets say 3by3 matrix and when your getting close to the edge you load the next part in the matrix and unload the ones that is out of the 3by3 matrix.

For the 3d format im not sure to be honest we use x for everything atm and i havnt testedwith light maps yet. Still learning Lightwave ;-) but i gues i could test in lightwave. And load iti nto out Client.
mark01
Posts: 32
Joined: Sat Sep 08, 2007 1:27 am

Post by mark01 »

thanks for the answers so far.
How do I have to implement this. Do you have some example code for me
Umbra
Posts: 19
Joined: Sun Aug 26, 2007 12:54 pm

Post by Umbra »

Im not the coder in our project but i can check with the programer when i get home from work.
mark01
Posts: 32
Joined: Sat Sep 08, 2007 1:27 am

Post by mark01 »

that would be fine. Or perhaps someone has a link to an example how to do this would be also fine
mark01
Posts: 32
Joined: Sat Sep 08, 2007 1:27 am

Post by mark01 »

does nobody have an example for me? :(
Post Reply