Jump to content

Recommended Posts

Posted

I have problem with measure of object. In the editor my object is seen in one kind, bur in program in another kind. As if in program my object is tautened.

In the editor:

07fc599c67b8.jpg

 

In the pogram:

b399c231d43f.jpg

Posted

how many directional lights do you have in the scene for your program? Are you creating a directional light in the program and also loading a directional light from the SBX file?

 

multiple directional lights in a scene cause this flattening affect... it is a known bug...

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Posted

are you loading a SBX file or are you just loading the model in your program? I am asking because I can see from your first picture that you have a directional light in the editor scene...

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Posted

Yes, i'm sorry, i created light twice. And when i bloted out the createlight function from the code the measure came right. But now i can't regulate shade. How i can do it?

Posted

Remove directional light from the editor, or get access to them by code..

It's easyer remove the directional light from editor and then place it by code rather then get it from the scene.

Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10.

Posted

Just set the properties of the directional light like color, rotation, etc inside the editor. One of the reasons to use the editor is to instantly see realtime results. If you set up the directional light like you want inside the editor, it should look the same whenever you load the SBX file with your program.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

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.

×
×
  • Create New...