Results 1 to 18 of 18

Thread: graphic problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    6

    Question graphic problem

    hi i make a game now and i try to fix problem i put sound
    but my problem is picture its a rpg style game and my guy is an alien but he is in a white picture and when he are on the top of an other jpeg you see the white box and i dont want to
    can someone help me please i dont know how
    thank for ur help
    julspower [email protected]

  2. #2
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    so you want all white to be drawn transparent?
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    6

    Thumbs up txh

    thank for your help its almost that yes is the white that i want to be transparent
    i got 2 jpeg and one have white and the other is lot of colors and when the guy move the white move
    i just want to white how

  4. #4
    Fanatic Member Alien_poo's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    668
    um... if you just want transparent in your pics, attach them, tell me where you want transparency and I will do that for you, here is an example of a transparent pic:
    Attached Images Attached Images  
    "A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
    "First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
    - Robert Matthews, Science Correspondent

  5. #5
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    or you could create a mask...
    or you could use setpixel and skip all white pixels..
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  6. #6
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409
    i dont have any answers but ive been wondering the same thing myself

    i thnk i could figure out how to do it with setpixel id just have to read the picture and only ste the pixels that arent white to the other picture

    but what is a Mask and how does it work??

    thanks

  7. #7
    Addicted Member Aldragor's Avatar
    Join Date
    Oct 2002
    Location
    Québec, Canada
    Posts
    140
    Je comprend que tu es un Québecois français et que tu as quelques difficultés avec ton affichage graphique lorsque tu passes un image par dessus une autre. Il y a plusieurs informations sur internet pour t'aider je peux te donner quelques liens si c'est bien le problème auquel tu fais face.

    Au plaisir d'avoir de tes nouvelles.
    Mens sana in corpore sano
    ... pour mieux travailler!

  8. #8
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    My french isn't too good, so if you can understand me in English all the better

    You can't use JPG for transparency, BMPs or GIFs will work.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  9. #9
    Fanatic Member Alien_poo's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    668
    Originally posted by Aldragor
    Je comprend que tu es un Québecois français et que tu as quelques difficultés avec ton affichage graphique lorsque tu passes un image par dessus une autre. Il y a plusieurs informations sur internet pour t'aider je peux te donner quelques liens si c'est bien le problème auquel tu fais face.

    Au plaisir d'avoir de tes nouvelles.
    Moi j'ai rien comprit de son message!!! Et peut-etre qu'il est Allemand, que-est-ce que tu en sais???

    Chill!
    "A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
    "First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
    - Robert Matthews, Science Correspondent

  10. #10
    Fanatic Member Alien_poo's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    668
    Oops, je vien de voir son e-mail, ta peut etre raison
    "A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
    "First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
    - Robert Matthews, Science Correspondent

  11. #11
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    it was a long time ago since i used maskes, so i dont remember the best way to do it....
    im sure someone esle here knows how...
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  12. #12

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    6

    yeah thank but...

    i know french i am
    but i can read english 2
    thank for telling me for mask but i dont know how it work if someone can say it will help

  13. #13
    Addicted Member Aldragor's Avatar
    Join Date
    Oct 2002
    Location
    Québec, Canada
    Posts
    140
    Maybe region could be good for you look at:
    http://www.flipcode.com/articles/art...n32skins.shtml

    For drawing & animation look at:
    http://www.vbexplorer.com/VBExplorer/gdi1.asp

    For a fast pixel plotting look at:
    http://rookscape.com/vbgaming/tutAY.php

    Consider looking it all

    Also look my attachment it's a list of good Visual Basic and useful topic Links.
    Attached Files Attached Files
    Mens sana in corpore sano
    ... pour mieux travailler!

  14. #14
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    ok...i made a program that supports fully and half transparent sections...
    pretty well commented, but if you dont understand something, just ask!
    Attached Files Attached Files
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  15. #15

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    6
    thank for your help cyborg its almost that its like your program but when you move the mouse i dont want to see the white in the circle
    i have big trouble with this problem
    i almost found a way but we need a picturebox and my pic is too bigger
    bye bye if i found it i will say for sure
    thank for your help all

  16. #16
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    i dont really understand....
    there's no white in the circle in my program...
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  17. #17

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    6
    yeah there no white in the circle but around yes and this is just what i want no white around
    thank again

  18. #18
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    ok!
    you're welcome!
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width