Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,631 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with terrain and SCAN_TEXTURE #182603
02/07/08 19:53
02/07/08 19:53
Joined: Jun 2006
Posts: 214
Germany, NRW
T
TheThinker Offline OP
Member
TheThinker  Offline OP
Member
T

Joined: Jun 2006
Posts: 214
Germany, NRW
Hi,
I have a terrain named "tterain_n.hmp". "_n" for the nonchunked thing.
To be sure the var "terrain_chunk" is set to zero.
So, here comes the problem. i sent a trace from the mouse position to the terrain with SCAN_TEXTUR, USE_POLYGON and IGNORE_PASSABLE. But the hit.u1 and hit.v1 vars remains by 0. The hitvertex var is always -1.
I tested this vars with a "model terrain". They work without any problems with ->models (!). If I deactivate IGNORE_PASSABLE the hitvertex var gives only the values 5 and 6.
Please help me. Is there a trick or something I'ver forgot to do.
MfG,
Patrick

Re: Problem with terrain and SCAN_TEXTURE [Re: TheThinker] #182604
02/09/08 18:16
02/09/08 18:16
Joined: Jun 2006
Posts: 214
Germany, NRW
T
TheThinker Offline OP
Member
TheThinker  Offline OP
Member
T

Joined: Jun 2006
Posts: 214
Germany, NRW
Ha ha,
again a question of me, nobody can answer to.
Please move this to bughunt, because i think it is one.
In the manual is no sign of a note like "Not working with terrains"

Re: Problem with terrain and SCAN_TEXTURE [Re: TheThinker] #182605
02/11/08 15:15
02/11/08 15:15
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline
Senior Member
Roel  Offline
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
You can try to disable use_polygon, at least in a6 the c_trace function already uses polygon for terrain.


Check out the throwing game here: The throwing game

Moderated by  HeelX, Spirit 

Gamestudio download | 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