Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Ayumi, Akow, AndrewAMD), 1,505 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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