Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: possible bugs.. [Re: Wjbender] #447339
12/05/14 10:24
12/05/14 10:24
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
not tried yet, just for the 1st sight is your vector declaration correct? I use VECTOR within functions instead of VECTOR*, and use always vec_set or other vec_ command.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: possible bugs.. [Re: sivan] #447340
12/05/14 10:51
12/05/14 10:51
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
I got it to work by iterating directly over the vertices with ent_getvertex and then using a scale factor for the vertex positions into the bmap pixel positions .

it's fine like this ,lod works fine ,the heightmap is applied fine and the speed is fine jumping from vertex to vertex.

I dont know what's wrong with that code sivan ,maby its the ent_nextvertex or math section plugged into ent_nextvertex ..

a good feature would be if the height between one lod mesh to the next are morphed/interpolated or smoothly changed over time since height changes from one lod to the next is a sore thumb SOMETIMES ,if there is already such a feature I would like to make use of it ,just point me in the direction ,just a thought though.

jb


Last edited by Wjbender; 12/05/14 11:11.

Compulsive compiler
Re: possible bugs.. [Re: Wjbender] #447356
12/05/14 21:43
12/05/14 21:43
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
another one I am not sure of , when I set terrain lod above 0 , and create a terrain with ent_createterrain ,I try to read the pixel off the terrain with terrain_getpixel .

all it does is return a script crash in terrain_pixel_for_pos no matter what I use as input for the terrain_getpixel function. .

it only works with terrain lod at 0

maby the bug is linked somehow..

Last edited by Wjbender; 12/05/14 21:44.

Compulsive compiler
Re: possible bugs.. [Re: Wjbender] #447357
12/05/14 22:01
12/05/14 22:01
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
the exact same issue with terrain_setpixel with the exact same error message ,only works with terrain lod at 0


Compulsive compiler
Re: possible bugs.. [Re: Wjbender] #447359
12/06/14 07:32
12/06/14 07:32
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
I got the problem ! terrain bounds aren't automatically set , the terrain. max_x .min_x .max_y .min_y min_z max_z all give a result of 0 , if I use c_setminmax directly after terrain creation the terrain lod and everything works because the bounds are part of those calculated values used in the code parts I needed to use..

jb


Compulsive compiler
Page 2 of 2 1 2

Moderated by  jcl, Nems, Spirit, Tobias 

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