Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JOGL Development / Re: GLJPanel and jinternalframe on: 2009-10-07 08:13:03
thx for the explanation, i see that i need to wait java 7 where i can mix heavy weight and lightweight weight components
but i back to question why resizing jinternalframe don't effect for new init() call but main frame(JFrame) do

in my app i have  GLJPanel ->jinternalframe->JDesktopPane->JFrame component structure
2  Java Game APIs & Engines / JOGL Development / GLJPanel and jinternalframe on: 2009-10-04 21:25:57
hi all

i have strange affect using GLJPanel and jinternalframe
i add GLJPanel to jinternalframe and all work well but then i resize my main frame(JFrame) init() occur and i get new OpenGL context(as i understand) but if i resize jinternalframe i dont get init() method is called

in my app i have about 500 texture objects in one frame and to avoid unnecessary computation i cache them and    
as a result, after each init() i lose them
also operation creating a new context is expensive enough to

why this hapening and any way to avoid init() method is called after main frame resized?

thx

ps. i use -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=true and jogl 1.1.1
3  Java Game APIs & Engines / JOGL Development / Re: texture hightlite on: 2009-07-22 21:58:20
thx for reply

i attach visual representation of what I wanted to achieve, highlight color maybe any but all pixle with 0 alpha need to stay the same

i try to use GL_MODULATE and GL_COMBINE but this is not what i want
4  Java Game APIs & Engines / JOGL Development / texture highlight on: 2009-07-22 14:55:13
hi

i have texture(img1) which i render on the screen(gljpanel), then if user mouseover it i want highlight it with yellow (exemple yellow with 0.5 alpha)
what i think to do that create another texture(img2, yellow with 0.5 alpha) with hight and wight as img1 and render over it
but problem is img1 have transparent pixels(0 alpha) and if i render over it all area of img1 be merget with img2.

Is there a way to set blend rules as if img1 have 0 alpha in pixel then this pixel in img2 don't merge with img1?

or maybe java image have this functionality and i can do it on bufferedimage(i create texture from bufferedimage)

PS img2 i can only create programmatically

thanks
5  Java Game APIs & Engines / Java 2D / hardware pipeline on: 2009-01-28 16:36:41
hi

i have problem to understanding java hardware pipeline (opengl or dx), if i enable hardware pipeline what operations be accelerated ?, only volatileimage or also BufferedImage and other? (example transparency)

thx
Pages: [1]
 
xxMrPHDxx (21 views)
2017-11-21 16:21:00

xxMrPHDxx (14 views)
2017-11-21 16:14:31

xxMrPHDxx (16 views)
2017-11-21 16:10:57

Ecumene (114 views)
2017-09-30 02:57:34

theagentd (150 views)
2017-09-26 18:23:31

cybrmynd (260 views)
2017-08-02 12:28:51

cybrmynd (250 views)
2017-08-02 12:19:43

cybrmynd (247 views)
2017-08-02 12:18:09

Sralse (260 views)
2017-07-25 17:13:48

Archive (881 views)
2017-04-27 17:45:51
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org 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‑gaming.org
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!