Jump to content

Name of textures


Andrey Zimin
 Share

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 ???

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...