Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Texture from inside of the object

This topic is 6116 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to make a sphere and add texture on it, but I want to place my camera inside the sphere so it can see around n inside from the sphere. After I added the texture it seems that the texture on reflect on the outside but not on the inside so my cam only get a dark pitch, what can I do to make my texture also available from the inside ?? ps : I''m using MAX as my 3D tools

Share this post

Link to post
Share on other sites

Most likely your sphere is being culled since you''re viewing the triangles from ''behind''. If you can get 3DMax (or the exporter) to reverse the winding order of the vertices, then you''re set.

Otherwise you can set

though that isn''t a perfect solution. For example, if you use lighting, your lighting will be wrong since your normals are facing the wrong way.

Stay Casual,

Drunken Hyena

Share this post

Link to post
Share on other sites
You can also scale the sphere by -1 to have the same effect.

D3DXMatrixScale(spherematrix, -1,-1,-1);

(or something similar to that)

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!