Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (685)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  a couple more questions  (Read 1528 times)
0 Members and 1 Guest are viewing this topic.
Offline Raloth

Senior Newbie

I love YaBB 1G - SP1!

« Posted 2003-04-09 00:38:34 »

1) I still can't get things to render properly. What is wrong with the following?


The cursor ends up being blended with what is already on the screen. Changing the blending mode just makes it so the black transparency shows up. What am I doing wrong?

2) I would rather have my game in a window (yes I know that it is meant to be a debug mode). Is there any way to share the Windows cursor (for lack of a better description)? I.E. when the cursor reaches the edge of the Display boundries it hops out into the Windows environment.

3) What does Sys.getTimerResolution() do? Is it measured in ticks per millisecond?

Thanks for the help Smiley.
Offline princec

« JGO Spiffy Duke »

Medals: 625
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #1 - Posted 2003-04-09 10:03:32 »

1) gl.blendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA); You will need an alpha channel for the mouse texture.

2) Tough Smiley Hack the library about yourself!

3) Ticks per second.

Cas Smiley

Offline Raloth

Senior Newbie

I love YaBB 1G - SP1!

« Reply #2 - Posted 2003-04-09 23:30:14 »

I know you can save alpha channels in a .png but I just can't get Photoshop (or any paint program for that matter) to do it. Is there some secret trick?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline darcone

Junior Devvie

Size matters

« Reply #3 - Posted 2003-04-10 04:04:48 »

I will now reveal the best kept secret in the history of Photoshop! Ok, be sure not to fall out of your chair now!
He he he...
I had a hard time finding the answer for that one as well, and the simple answer is this following procedure:

a) Create an image without a background layer (says itself, transparent).
b) Go to channels and add a new channel (should be R, G, B and now Alpha 1 <-- the new one)
You&acute;re all done! Save as.. and then choose PNG.
Remember to keep your texture sizes 2^n Wink
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Dwinin (60 views)
2015-11-07 13:29:08

Rems19 (73 views)
2015-10-31 01:36:56

Rems19 (65 views)
2015-10-31 01:32:37

williamwoles (102 views)
2015-10-23 10:42:59

williamwoles (88 views)
2015-10-23 10:42:45

Jervac_ (102 views)
2015-10-18 23:29:12

DarkCart (129 views)
2015-10-16 00:58:11

KaiHH (112 views)
2015-10-11 14:10:14

KaiHH (150 views)
2015-10-11 13:26:18

BurntPizza (164 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!