Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
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
1 registered members (AndrewAMD), 177 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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