Jump to content

Model flip issue


syed samoon
 Share

Recommended Posts

Is it a single model? If so you are facing a face ordering issue :)

but no problem, we've got you covered. Just call mesh.material.alphaMode = BABYLON. Engine.ALPHA_PREMULTIPLIED

 

Also, based on how looks your mesh, I suggest not using opacity texture (which force full transparency) but instead diffuseTexture with alpha

 

Good reading about alpha and transparency: http://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered

Link to comment
Share on other sites

15 hours ago, Deltakosh said:

Is it a single model?

yes  @Deltakosh  it is a single model.

 

https://assetstore.unity.com/packages/3d/environments/sci-fi/sky-city-lite-65679

 

the above link is unity pack of this model

 

i was download and duplicate the platform and merge (Using 3DS MAX) them to get big platform like this.

And the i was exported as .babylon file

Link to comment
Share on other sites

Is there anything wrong in lightning and camera

my script is given below

this.base.camera = new BABYLON.FreeCamera("camera", new BABYLON.Vector3(0, 0, -30), this.base.scene);
this.base.camera.maxZ = 1700;
this.base.camera.attachControl(this.base.canvas);
this.base.camera.speed = 2.0;
 
this.base.camera.setTarget(new BABYLON.Vector3(0, -2, 0));
 
 
// Hemispheric light to light the this.base.scene
hemi = new BABYLON.HemisphericLight("hemi", new BABYLON.Vector3(0, 1, 0), this.base.scene);
hemi.intensity = 0.5;
var directionLight = new BABYLON.DirectionalLight("DirectionalLight", new BABYLON.Vector3(0, -10, 400), this.base.scene);
directionLight.diffuse = new BABYLON.Color3(0.8, 0.7, 0.6);
directionLight.specular = new BABYLON.Color3(0.9, 0.8, 0.4);
directionLight.radius = 1;
directionLight.intensity = 0.5;

 

Link to comment
Share on other sites

33 minutes ago, syed samoon said:

i will try this but no use

I don't understand, have you tried it and it doesn't do anything, or will you try it and haven't use it yet ? (and do you talking about my script?)

If you don't want use the maxscript, you just have to do that:

X00BZF4.png

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