Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (SBGuy, Petra, flink, AndrewAMD, 1 invisible), 687 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
That is why #414616
01/05/13 20:17
01/05/13 20:17
Joined: Nov 2012
Posts: 49
A
amirmehrvarz Offline OP
Newbie
amirmehrvarz  Offline OP
Newbie
A

Joined: Nov 2012
Posts: 49
hi
How can I solve this problem
http://s2.picofile.com/file/7609857739/jhgjhgjhgkjjl.jpg
.
Everything is abnormal
Light intensity Is too high
Fallen ShadowIt is so ugly
what i do ?? (for destroy shadow and light )
thanks

Re: That is why [Re: amirmehrvarz] #414624
01/05/13 21:13
01/05/13 21:13
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
use a model with better geometry and use a pixel shading for lights instead of vertex lighting.


3333333333
Re: That is why [Re: Quad] #414664
01/06/13 13:13
01/06/13 13:13
Joined: Nov 2012
Posts: 49
A
amirmehrvarz Offline OP
Newbie
amirmehrvarz  Offline OP
Newbie
A

Joined: Nov 2012
Posts: 49
what ?? I did not do much with med You tell me exactly what to do
thank you

Re: That is why [Re: amirmehrvarz] #414700
01/06/13 20:11
01/06/13 20:11
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
3DGS is very complicated to have good lightening , and complicated to use.

First check in MED object properties :
Diffuse
Ambient
Specular
Then adjust Sun and Ambient properties of your Map.

They have a lot of influence if you don't use any shader.

I also would recommend you to use some shader, they are a good bunch ready to use.

So what you have to do is try and experiment.

Re: That is why [Re: ratchet] #414739
01/07/13 10:55
01/07/13 10:55
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
The issue with your model that causes the bad lighting is shared vertices between different faces/ groups of faces and thus interpolated normals.
I've made a simple tutorial for you how to fix this: http://www.superku.de/lighting_tut.jpg


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: That is why [Re: Superku] #414954
01/11/13 12:02
01/11/13 12:02
Joined: Nov 2012
Posts: 1
Germany
Shigen Offline
Guest
Shigen  Offline
Guest

Joined: Nov 2012
Posts: 1
Germany
I have the same problem and SuperKu's tip works very well. But since models can become very complex it is not always so easy to do and the number of vertices in the model would increase significantly. A simple cube would have 24 vertices instead of only 8.

So I have another question according this problem:
When are the surface normals computed? Are they already stored in the model, created when the model is loaded or before rendering a new frame? And is it possible to manipulate the normals?

Re: That is why [Re: Shigen] #414962
01/11/13 16:47
01/11/13 16:47
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
it is possible to manipulate normals runtime by the d3dvertex struct, see manual at ent_getvertex / ent_setvertex. e.g. I modify tree leaf normals runtime to be more realistic.
as I know, normals are stored in the mdl file. if you import e.g. an .fbx file to MED with custom normals, they are kept. but there is an option in MED somewhere to update normals, which calls (I think) the directx ComputeNormals (which is also available to be called runtime), that calculates the vertex normals as the average of the neighbouring 3 faces (hopefully I'm correct).


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: That is why [Re: sivan] #414965
01/11/13 18:09
01/11/13 18:09
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I don't think that this will work as the lighting is based on vertex normals and not face normals. When you know manipulate a vertex's normal so that the shading on one side of the cube is correct/ flat, you will destroy the result when you try to fix it on another side that shares this vertex.
I could be wrong though to the point that it works with a different shading method but I'm not aware of something like that.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: That is why [Re: ratchet] #414967
01/11/13 20:03
01/11/13 20:03
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
Originally Posted By: ratchet
3DGS is very complicated to have good lightening , and complicated to use.

First check in MED object properties :
Diffuse
Ambient
Specular
Then adjust Sun and Ambient properties of your Map.

They have a lot of influence if you don't use any shader.

I also would recommend you to use some shader, they are a good bunch ready to use.

So what you have to do is try and experiment.


this has nothing to do with 3dgs at all. it has to do with the way 3d models are shaded in realtime in just about any engine. its the default dx shading pipeline, same thing with ogl.


Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1