You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
doqkhanh
Posts: 158 Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:
Post
by doqkhanh » Tue Jul 01, 2008 3:09 pm
Both in game and in irrEdit, the model look like a @(#*@(*$ model. Please help me, show me how to fix this problem.
And, why the wireframe change when I change the material type ???
Thank you very much.
This file content model, texture file and blender file:
http://quockhanh.info/skydriver/3D/irr% ... hasan1.rar
Wireframe if I choose alpha texture:
Wireframe if I choose solid texture:
The error:
In blender image:
Other image:
JP
Posts: 4526 Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:
Post
by JP » Tue Jul 01, 2008 3:22 pm
Looks like your faces are inverted on the last one, there should be an option in blender to reverse the vertex order of the faces.
what format are exporting to btw?
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Tue Jul 01, 2008 3:48 pm
It's a b3d file. Please check the mesh vuewer with OpenGL driver. This might already fix the issue...
vectorcorpse
Posts: 86 Joined: Thu Feb 14, 2008 7:30 pm
Location: Portugal
Post
by vectorcorpse » Tue Jul 01, 2008 4:24 pm
1st press ctrl+n on edit mode on blender to recalculate normals outside
but theres another problem, irrlicht does not support double sided textures so u have to duplicate the model and on the dup u recalculate the normals inside by pressing ctrl+shift+n, at least it is the only way i know to solve this and the way i did it on my tests.
dlangdev
Posts: 1324 Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:
Post
by dlangdev » Tue Jul 01, 2008 6:24 pm
i say it again...
load the the model and press ctrl+n.
the face normals will now point outward.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Tue Jul 01, 2008 8:39 pm
The normals are not important, because this is no lighting problem. It would only be a problem if the faces were wrongly oriented. However, it is all ok, but the zbufferwrite problem of the d3d driver hit again?!
dlangdev
Posts: 1324 Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:
Post
by dlangdev » Tue Jul 01, 2008 8:42 pm
"irrlicht does not support double sided textures"
maybe there's a 'direct' GL command that can be issued from Irrlicht? That should fixed the single-side bug.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Tue Jul 01, 2008 8:49 pm
Ehh
There is no single sided bug, moreover you can always disable the backface culling. However, this is a problem with zbuffer usage...
dlangdev
Posts: 1324 Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:
Post
by dlangdev » Tue Jul 01, 2008 9:00 pm
yeah, that's what i'm talking about.
pardon my writing. i'm using two languages at the moment as i speak several languages.
intiendes?
doqkhanh
Posts: 158 Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:
Post
by doqkhanh » Wed Jul 02, 2008 1:32 pm
Thank JP, Hybrid, Vectorcorpse and Dlangdev very much. The error may be by our 3D Modler not using right option in blender.
vectorcorpse
Posts: 86 Joined: Thu Feb 14, 2008 7:30 pm
Location: Portugal
Post
by vectorcorpse » Wed Jul 02, 2008 4:27 pm
nice
hybrid can u post an example on how to correctly use double sided texture?
it is something i'v been trying to use but never got a way arround it
i'v benn trying to use a double sided texture on a simple mesh with transparency so make the hair of a model but when u look at it tha outside of the hair shows up but the inside doesn't ani also have problems with the transparency
thx in advance
Virion
Competition winner
Posts: 2148 Joined: Mon Dec 18, 2006 5:04 am
Post
by Virion » Wed Jul 02, 2008 4:57 pm
i got the same problem. in blender, my model looks fine (i've disabled double sided texture)
but after imported to irredit (it's a b3d)
dlangdev
Posts: 1324 Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:
Post
by dlangdev » Wed Jul 02, 2008 5:02 pm
hmmm, you sure that's not a user error?
looks like there are two versions in there?
post the blend file and i'll take a look.
by the way, the tubes, are they flat polygons or real cylindrical polys.
Virion
Competition winner
Posts: 2148 Joined: Mon Dec 18, 2006 5:04 am
Post
by Virion » Wed Jul 02, 2008 5:09 pm
dlangdev wrote: hmmm, you sure that's not a user error?
looks like there are two versions in there?
post the blend file and i'll take a look.
by the way, the tubes, are they flat polygons or real cylindrical polys.
those are cylinders. only the fence wire is a flat poly. and... the second image looks darker because i turn on lighting in irredit.
btw the blend file, with texture:
http://www.zerocore.net/railing.zip
dlangdev
Posts: 1324 Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:
Post
by dlangdev » Wed Jul 02, 2008 5:28 pm
here's my version...
try the obj file format, coz that's the test fomat i loaded. tho u can see the transparency bug in the pic. i haven't selected the correct blend yet.
irredit version: irrlicht 1.4.1