Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JOGL problem

 
Michael Kol
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello java professionals! Here is an «introduction» to my problem:

Due to my task, I must implement a project for clusterization and visualization of some data set. I haven't troubles with the clusterization yet, but need help with the visualization.

I chose JOGL (Java OpenGL) for my project. So, my question is concerned with JOGL.

At the beginning I decide to practice in JOGL. I just want to draw a white rectangle on the black background. Here is my source code:



Now the fact of the matter. When I resize a main window, I got a noize (I placed the result in the attached file). Any suggestions for the problem-solving? Maybe I need to implement another OpenGL functions within display() or reshape() functions?

Thanks in advance!
Michael.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

I don't see any attached image, but when I run the code it gets resized just fine - no artifacts, no visual noise.
 
Michael Kol
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ulf Dittmer

Thanks for the reply. It's strange that message doesn't have an attached file.

I'll try to post it in this message.

 
Michael Kol
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ulf Dittmer,

thanks again. I just checked the application on another machine. It works properly there.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good to hear. OpenGL/JOGL relies heavily on graphics card behavior, so there are more variables than just the OS version and JVM version...
 
Water! People swim in water! Even tiny ads swim in water:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!