Gamestudio Links
Zorro Links
Newest Posts
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
2 registered members (AndrewAMD, alibaba), 1,184 guests, and 3 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
World position of pixel #450864
04/24/15 02:37
04/24/15 02:37
Joined: Jan 2005
Posts: 330
USA
M
MatAllum Offline OP
Senior Member
MatAllum  Offline OP
Senior Member
M

Joined: Jan 2005
Posts: 330
USA
Is there any function, or any way in general, to retrieve the world position of a given pixel of a model's lightmap?

Re: World position of pixel [Re: MatAllum] #450868
04/24/15 04:21
04/24/15 04:21
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
You can use HLSL to solve this not so trivial task.

You can look into shaders here --> click here and be awesome


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: World position of pixel [Re: DLively] #450884
04/24/15 11:06
04/24/15 11:06
Joined: Jan 2005
Posts: 330
USA
M
MatAllum Offline OP
Senior Member
MatAllum  Offline OP
Senior Member
M

Joined: Jan 2005
Posts: 330
USA
I thought it was pretty much a one-way trip from shaders to rendering. Given that I'm trying to retrieve the positions back into lite-C, I'm guessing I need to consider other options.

Re: World position of pixel [Re: MatAllum] #450890
04/24/15 13:54
04/24/15 13:54

M
Malice
Unregistered
Malice
Unregistered
M



Simple work around is to place a floating vertex on the pixel inside med and find the vertex pos.

However if you want to find several spots you may want to look into the HitBox/HitZone code Superku do with the second skin as a color field for hit spots and head shoots. http://www.coniserver.net/coni_users/web...4_4_2_3_2_2.htm

Just idea's no solution
Mal

Last edited by Malice; 04/24/15 13:59.
Re: World position of pixel [Re: ] #450891
04/24/15 13:59
04/24/15 13:59
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Yes, that would work too I suppose, however with much less accuracy - And could cause problems If the model is going to be animated (Especially, Especially if the model is animated already [depending on the amount of frames, and the exact vertex position needed to be updated]).

Last edited by DLively; 04/24/15 15:08.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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