WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-16-2006, 11:33 AM
shivanangel shivanangel is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 182
Smile A Question Regarding Normals.

I am trying to create a sphere within a sphere.
The outer sphere has the 'normals' reversed inwards
so that the inner sphere is always visible from any angle.

I constructed this in both 3D Max and Maya, and exported
and checked then in Deep Exploration to make sure that the
normal direction was being retained.
I tried both the supported .obj and .3DS file types.

When I brought the objects into Vizard, the outer sphere
reverted the normals back to the outside.

Does Vizard support this use of normals in this manner?
Is there a line of code I can implement to make
them flip back so I see the inner sphere once again?

~~Thanks
George
Reply With Quote
  #2  
Old 02-17-2006, 02:10 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

There are a few ways around this depending on your model. If the model is untextured and symmetrical around the origin, then you can simply apply a negative scale to it:
Code:
model.scale(-1,-1,-1)
If you don't plan on enabling lighting on the model then you can disable back face culling:
Code:
model.disable(viz.CULL_FACE)
.If neither of these work then you might want to try the OSG exporter for 3DS max, which exports the model into Vizards native format. You can download it on the Vizard download page.

I'm not very familiar with 3D modelling tools, but if there is an option to reverse the triangle order on the model, then that might work as well. Let me know if none of these options work, and I'll try to figure out another solution.
Reply With Quote
  #3  
Old 02-20-2006, 06:26 PM
shivanangel shivanangel is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 182
Just wanted to state for anyone else looking
for an answer to this solution that the only
way I could get the normals flipped was
by using the
3D Studio Max plugin offered here on this
website.

The other methods did not work for me.

But the plugin works marvelously.

~~George Lecakes
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:28 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC