Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / object too dark

Author
Message
haliop
User Banned
Posted: 17th Sep 2010 08:53
hello
i have exported X file from blender
and it dosent recive any lights whatsoever
its too dark , and dont even show the normals smoothing
just plain dark.

i checked the file in DirectX X viewer and the normals seems fine
in blender they seem fine also
but when i load them into GDK its just too dark and im missing alot of detail with it.

i exported using, DirectX Exporter for 2.49/2.5
im using 2.49 cause i cant export from 2.5 with it..

at first i had a problem where i mirrored the legs and hands
but then the mirrored ones , had the opposites normal
so i flipped them, you could see it good but the shading was like i didnot flipped them..
has anyone encountered such a problem?
its for the intel contest , so pls help.

ty for your time
a picture:



p.s i also tried dbSetObjectLight() and dbSetObjectDiffuse() but still nothing , so maybe its something inside blender that i missed out..
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 17th Sep 2010 13:01
To correct the normals you may try:



If you think that the object is 'crispy', try to adjust smoothing angle:



An angle of 30.0f uses to give good results, but it depends on every particular mesh, and their facet angle.

haliop
User Banned
Posted: 17th Sep 2010 17:31
that dosent help
ty anyway.
anything else?
AnX
13
Years of Service
User Offline
Joined: 17th Sep 2010
Location:
Posted: 17th Sep 2010 18:53
Maybe this will work

dbSetNormalizationOn();
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 17th Sep 2010 21:36
i think un-textured objects have default lighting, unlike textured ones, so i think you need to add lights

Dodga
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 18th Sep 2010 07:43
Try dbSetObjectEmissive, also it may be the camera angle, also dbSetObjectLight
haliop
User Banned
Posted: 18th Sep 2010 23:13
ive tried adding lights and setting the object to recive lights
i tried dbSetOBjectLight
dbSetObjectAmbience
dbSetObjectNormals..

but nothing works..
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 19th Sep 2010 19:54
I suggest to upload the .x file and the associated code to get further help...

Dodga
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 19th Sep 2010 21:06
Try putting this at the start of your program, I have to do this every time to get any lighting to work.
dbPerformChecklistForGraphicsCards();
dbSetGraphicsCard ( dbChecklistString(1) ) ;
AnX
13
Years of Service
User Offline
Joined: 17th Sep 2010
Location:
Posted: 22nd Sep 2010 21:03
Try this

dbSetNormalizationOn();

Login to post a reply

Server time is: 2024-07-02 08:22:23
Your offset time is: 2024-07-02 08:22:23