Page 1 of 1
mirroring problem...
Posted: Sun Sep 02, 2007 8:53 am
by Kosmokrator
hi suv...im working on some scene and i discover some strange behaviour of exporting......so....when i clone an object like this in the image all its ok....renders fine....but when i mirror the object via the mirror button of max the objects render but black with no material as u can see in the image!!!
i dont know may its a known bujg for u...but in my scene i neet the mirror not simple clone and i can go further in my project!i attatch the file for testing!
thnx
Posted: Sun Sep 02, 2007 9:15 am
by suvakas
Hey, kosmo
Yeah, the mirror is a pain in the ass.
I will test the scene tomorrow. It's too late today. Time for some sleep.
Posted: Sun Sep 02, 2007 11:27 am
by lwan
it's max fault, apply a reset-xform to the mesh and you'll see normals are inverted after a mirror operation.
Posted: Sun Sep 02, 2007 7:50 pm
by Kosmokrator
oohhhh no lwan...its not max fault....i apply reset x-form to objects and nothing happent!!!still black object
Posted: Sun Sep 02, 2007 8:12 pm
by suvakas
Eh..actually it is max fault and it sure is a normals issue

I've done a lot of testing lately and sometimes the reset x-form doesn't fix it.
Good news is, that the scene works fine in my current development version of Maxigo (check the image). So stay tuned. I'll probably make a release soon.
Ps. You could try to flip the normals yourself. Maybe it helps for now.
Posted: Sun Sep 02, 2007 9:02 pm
by Kosmokrator
ohh thanx suvakas...i manual flip the normals and works now....great news about your exporter!
keep it up!thnx again!
Posted: Sun Sep 02, 2007 9:09 pm
by suvakas
The only thing with mirroring is, that it probably will never work with instances. I haven't look into it very seriously, but i currently have no idea how to make it working when using instancing. Cause well.. the geometry itself gets flipped.
If someone has an idea, then let me know!
Posted: Sun Sep 02, 2007 10:09 pm
by Kram1032
the OBJECT gets flipped, but the mesh should stay similar, shouldn't it?
Posted: Sun Sep 02, 2007 10:41 pm
by suvakas
Kram1032 wrote:the OBJECT gets flipped, but the mesh should stay similar, shouldn't it?
Are you sure? How do you flip object without altering the geometry? Then it's not mirroring but rotation. Don't vertex coordinates change after mirroring? Like A-B = B-A?
Posted: Sun Sep 02, 2007 10:49 pm
by Kram1032
I don't know, but I *guess* it can be done, without changing the mesh...
instancing uses the same mesh, more than once, but you can modify the object being differently sized and rotated - that should work just fine with mirroring... (If you mirror the object)
If you mirror the mesh, you can create equally shaped halves of a face and have normalsmoothing over the seam, which wouldn't work with instanced objects, except you make the seam using a flat 0° angle

Posted: Sun Sep 02, 2007 10:57 pm
by suvakas
I don't really get what you're talking about.
The question is - how do you mirror an instance of already exported geometry?
Posted: Sun Sep 02, 2007 11:20 pm
by Kram1032
you reuse the mesh data, make an additional object and flip it over it's three axes (as object)....
I'm not a programmer, so I don't know, how that'd look as code

Posted: Sun Sep 02, 2007 11:33 pm
by suvakas
Eh..Kram.. you talk alot, but i'm still not following you.

For example if you have a teapot mesh in *.3ds format. How would you make an instanced mirror of it in Indigo using the igs/xml syntax?
I'd say it can't be done because you need to change the initial geometry. And that means you can't use the instance of original model anymore.
What additional object are you talking about?