Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (3run, AndrewAMD), 667 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
projection of pixel values #408836
10/08/12 13:52
10/08/12 13:52
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
hi guys, my recent headache is the visualisation of values.
my data source is a matrix storing blue green and red values for each pixel. is there a way to project this pixel informations on a survace in the the A7 engine, so that i can visualize the data from the matrix in the engine?

thanks in advance
pjotr

Re: projection of pixel values [Re: pjotr987] #408837
10/08/12 14:01
10/08/12 14:01
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline
Senior Member
3dgs_snake  Offline
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
Hi,

You can use bmap_create and pixel_to_bmap to visualize your data.

Re: projection of pixel values [Re: 3dgs_snake] #408839
10/08/12 14:14
10/08/12 14:14
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
Thanks for your reply.
now i got atleast one idea how to start. but one doubt remains. how to get the pixel value for the function.

pixel_to_bmap(BMAP* bmap,var x,var y,var pixel);

as far as i understand this is the color of the pixel that shouls be set. right? if yes how to get it out of my red, green and blue chanels?

thanks

Re: projection of pixel values [Re: pjotr987] #408844
10/08/12 14:32
10/08/12 14:32
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
When you click on the link "pixel_to_bmap" in 3dgs_snake's post you see related keywords and instructions at the bottom of the page. This is oftentimes very helpful, and here it is, too (you are looking for "pixel_for_vec").


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: projection of pixel values [Re: pjotr987] #408845
10/08/12 14:32
10/08/12 14:32
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline
Senior Member
3dgs_snake  Offline
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
Hi,

You have to call bmap_lock to obtain a format, and call pixel_for_vec to obtain the pixel you want to blit.

Re: projection of pixel values [Re: 3dgs_snake] #408847
10/08/12 14:42
10/08/12 14:42
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
thanks to both of u
will try to solve it

thanks again


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