Custom terrain by MeshVertextCoordinates

Everything related to 3D programming
User avatar
Lexicon
User
User
Posts: 98
Joined: Mon Jul 22, 2013 6:16 am
Contact:

Re: Custom terrain by MeshVertextCoordinates

Post by Lexicon »

applePi wrote:have you downloaded the sdk which are refered to by the arrow:
Image
surely you have the vc++ 2008 run time files because you are able to run the files i have posted which are they made for vc++ 2008 (ie vc9)
this is the path for my files:
C:\ogre\OgreSDK_vc9_v1-9-0\bin\Release
what is the error message from the command prompt ??
No, I have downloaded file from the first tab. What's the difference?
PureBasic 5.11 | WinXP | 2GB RAM | GForce GT240
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: Custom terrain by MeshVertextCoordinates

Post by applePi »

because then you need to download and install the Visual C++ Redistributable for Visual Studio 2012 ( just 7 MB) http://www.microsoft.com/en-gb/download ... x?id=30679
don't forget to check on vcredist_x86.exe on the second page.
but since you and me are working on winxp 32 bit. i don't know if we need to install the extremely horrible Microsoft .NET Framework 4
try this , if it does not work and needs the net framework. download the sdk i referred to by the red arrow above
User avatar
Lexicon
User
User
Posts: 98
Joined: Mon Jul 22, 2013 6:16 am
Contact:

Re: Custom terrain by MeshVertextCoordinates

Post by Lexicon »

applePi wrote:because then you need to download and install the Visual C++ Redistributable for Visual Studio 2012 ( just 7 MB) http://www.microsoft.com/en-gb/download ... x?id=30679
don't forget to check on vcredist_x86.exe on the second page.
but since you and me are working on winxp 32 bit. i don't know if we need to install the extremely horrible Microsoft .NET Framework 4
try this , if it does not work and needs the net framework. download the sdk i referred to by the red arrow above
Thanks, applePi.
But I no need to use any C++! My program inside the only Purebasic, and all other objects are down to it.
Ok, new video about gravitation. :D

http://www.youtube.com/watch?v=HRgFed0lGoY

I been used example named "clothes.pb" and do not have been know of his autor. But he is a great man! :)
PureBasic 5.11 | WinXP | 2GB RAM | GForce GT240
User avatar
Lexicon
User
User
Posts: 98
Joined: Mon Jul 22, 2013 6:16 am
Contact:

Re: Custom terrain by MeshVertextCoordinates

Post by Lexicon »

Hi, mates! :)
All are fine with Additive (and Modulative) type of shadows, but it was without NormalizeMesh()! When I put this command after FinishMesh(#True), my terrain disappears.

With TextureAdditive type and without NormalizeMesh() my terrain have this view:

http://radium3dengine.com/shot_2014-03-19_16-16-55.JPG

Ok. But with NormalizeMesh() have this view:

http://radium3dengine.com/shot_2014-03-19_16-17-30.JPG

:shock:

How can this be? Where can I find an error?
I use this method. VtX & VtZ - Y coorditates i.e. height.

Code: Select all

Vx = ((VtX-1 - VtX) + (VtX - VtX+1)) / 2
Vz = ((VtZ-1 - VtZ) + (VtZ - VtZ+1)) / 2
MeshVertexNormal(Vx, 1, Vz)
PureBasic 5.11 | WinXP | 2GB RAM | GForce GT240
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Custom terrain by MeshVertextCoordinates

Post by Samuel »

In the second picture it looks like your terrain has flat shading instead of smooth.

I don't know what's wrong with your code, but it's also hard to tell with just those three lines of code.
The example I gave you (bottom of the first page) uses TextureAdditive and NormalizeMesh. Maybe comparing your code to that example will help.
User avatar
Lexicon
User
User
Posts: 98
Joined: Mon Jul 22, 2013 6:16 am
Contact:

Re: Custom terrain by MeshVertextCoordinates

Post by Lexicon »

I can prepare my pb-code and resources and send you. Could you see it?
PureBasic 5.11 | WinXP | 2GB RAM | GForce GT240
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Custom terrain by MeshVertextCoordinates

Post by Samuel »

If you want to go ahead and send it to me. When time permits I'll take a look at it.
Post Reply