Sign in to follow this  
Andrey Zimin

Name of textures

Recommended Posts

Hello friends! Many of the skyboxes I own use front, back, left, right, up, down in their naming convention. How do I know your names?

var extensions = ["_px.jpg", "_py.jpg", "_pz.jpg", "_nx.jpg", "_ny.jpg", "_nz.jpg"] <----- THIS?

What they correspond to?

for example:  _px - what is it? Up, down or ???

Share this post


Link to post
Share on other sites

Hi Andrey !

I guess _px means "Axis X : positive" Which means "Right Face" of the cube in the babylon space. And so on.
https://doc.babylonjs.com/babylon101/position#convention-2-world-axes (Red axis is X, Y is green, Z is blue).
When you are at (0,0,0) at look toward Z positive, then X positive is on your right.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.