Light-problems in orthogonal view (...and more...)

Blitz3D Forums/Blitz3D Beginners Area/Light-problems in orthogonal view (...and more...)

Abomination(Posted 2008) [#1]
I've bodged several bits of example-code together, to try to get a orthogonal view of a triangle-tiled mesh.
This picture is the result so far:


Now I would expect just the "cone" to be lit from the one side and shaded on the other.
But the adjacent triangles (witch are flat, also show light and shadow.
Is there a way to have just the cone (hill) to be lit and not the surroundings? Or is this result to be expected?
A second question I have is; how much do I have to scale the mesh,
to get a "more or less" pixel-perfect representation of the brush?



Any help or pointers I would greatly appreciate.

This is the brush I used:



Abomination(Posted 2008) [#2]
.bump
Well... it seems that I can stop the surrounding triangles from participating
with the ascended ones, by shifting the position of the vertexes?! a weeny bit.
It creates a kind of flat shaded effect.

nice.
But not what I wanted.
I suppose, dividing the triangles a few times would lessen the "reflect-to-the-ground-effect"
hmm


Pete Carter(Posted 2008) [#3]
i beleave b3d is smoothing your mesh you can stop this by using smoothing groups in your modeler, or you can unweld the cone fro the rest of the mesh and the it will give you a hard edge but the cone will still stay smooth.

i think this is what you are getting at?

its the same in most modellers, but i dont think you can set a meshes smoothing angle in blitz3d, i maybe wrong?

heres a quick example


image and the right normal smoothing, image on the left with cone unwelded.


Abomination(Posted 2008) [#4]
I suppose I did that unwelding thing in my last example (trimm.jpg), except that my code unwelded every triangle; but if I kept the cone-vertexes the way they were the result would probably be simular to your examples.
Prob is that I dont use a modeler but some code to transfer a heightmap to a mesh.
My example was to illustrate the (in my eyes) strange effect.
p.s.
emm... How do you get your example-pic to show in the browser?
I've been fiddling with them forum codes for half an hour, but no sigar.


Pete Carter(Posted 2008) [#5]
you dont have to use forum codes just put the full url to your pic and it will display it.

I have no idea how to sort it out in code im sorry.

Pete


Gabriel(Posted 2008) [#6]
URL's have to be URL encoded in order to display properly. That ~ character should not be in a URL encoded link.

I think it should be ( without the spaces )
http://www.xs4all.nl/ %7e dshorror/trimm.JPG




Abomination(Posted 2008) [#7]
HA!
And again it's them little things!
Cheers Gabriel