Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
new c_trace function #149087
08/19/07 22:24
08/19/07 22:24
Joined: Mar 2003
Posts: 1,524
Canada
Stansmedia Offline OP
Serious User
Stansmedia  Offline OP
Serious User

Joined: Mar 2003
Posts: 1,524
Canada
Just an idea, but in the future do you think it would be possible to be able to pull the pixel color from a trace? So if your bullets hit the wall you could set the particles to the color of the pixel you shot.


Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en
Re: new c_trace function [Re: Stansmedia] #149088
08/19/07 23:16
08/19/07 23:16
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
From the mighty manual
Quote:

SCAN_TEXTURE Retrieves the texture name, vertex number, flags, brightness and light color of the hit surface. Mutually exclusive with USE_BOX. The predefined string tex_name and the variables hitvertex, tex_flag1..tex_flag8, tex_light, tex_color and tex_fog are modified according to the hit object (see below). If nothing was hit, tex_name and the other parameters are not set. The texture name can be used to check the kind of floor below an entity.





Always learn from history, to be sure you make the same mistakes again...
Re: new c_trace function [Re: Uhrwerk] #149089
08/27/07 05:00
08/27/07 05:00
Joined: Mar 2007
Posts: 75
M
Metal_Man Offline
Junior Member
Metal_Man  Offline
Junior Member
M

Joined: Mar 2007
Posts: 75
this idea might be really slow, but it would work:

1. Get the vector for the point of collision

2. Get the screen coordinates of that point

3. Get the pixel color value for those screen coordinates

The problem is the high likelihood of slowness and the fact that it wouldn't work on off-screen collisions. (which shouldn't be a problem for off-screen particles though)

Re: new c_trace function [Re: Metal_Man] #149090
08/27/07 11:20
08/27/07 11:20
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Why would you wanna do that if you just had to set a flag before calling c_trace?




Always learn from history, to be sure you make the same mistakes again...
Re: new c_trace function [Re: Uhrwerk] #149091
08/28/07 09:22
08/28/07 09:22
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
Quote:

Why would you wanna do that if you just had to set a flag before calling c_trace?




Because some people can't read the manual text?

The 3DGS manual is written using special pixels that only a few people can actual see (consider yourself lucky).


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: new c_trace function [Re: Doug] #149092
08/28/07 10:47
08/28/07 10:47
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen


Sorry for the ot, but the special pixels threw me off my chair... *giggle* I've even quoted it two posts above...


Always learn from history, to be sure you make the same mistakes again...

Moderated by  aztec, Spirit 

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