Python Forum
Can OpenGL object be overlap?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can OpenGL object be overlap?
#1
lets say I create a cube with OpenGL in Python at x,y,z coordinate 5,5,5 respectively.
Then,I create another cube at the same coordinate,will the object overlap?
If it will ,how do I disallow it?
Reply
#2
Have you tried to create another cube at same coordinates? If/when you do, what happens?
If result will not be what you want, we will inspect further. And surely also need a piece of code, if we are to find a solution.
Reply
#3
Opengl has to determine which one has focus. Which z-fighting start happen. Same boxes will see nothing. But different boxes.
How to stop it. Overwrite the first one or disallow the second one ever being created.

https://www.youtube.com/watch?v=9AcCrF_nX-I
99 percent of computer problems exists between chair and keyboard.
Reply
#4
(Jan-18-2017, 09:38 PM)Windspar Wrote: Opengl has to determine which one has focus. Which z-fighting start happen. Same boxes will see nothing. But different boxes.
How to stop it. Overwrite the first one or disallow the second one ever being created.

https://www.youtube.com/watch?v=9AcCrF_nX-I

How do i disallow the second one ever being created?
Reply
#5
Without seeing code.
1. if you add to list. you loop through list to see if it there.

2. if you use dict. Then you check to see if key exist.

3. if you use list like arrays. Then you check list[5][5][5] to see if it None.
99 percent of computer problems exists between chair and keyboard.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tkinter text overlap Frankduc 3 2,967 Apr-01-2022, 08:02 PM
Last Post: deanhystad
  Pygame with OpenGL on RPI Zero without X: invalid operation aserranoh 0 1,420 Mar-20-2022, 09:49 PM
Last Post: aserranoh
  Exercise List Overlap Damian 7 3,132 Apr-02-2021, 07:39 AM
Last Post: Damian
  Rotated Rectangle overlap using Shapely pyNew 0 1,703 Feb-25-2021, 04:54 AM
Last Post: pyNew
  How to order the Cronjobs to avoid overlap or conflict sadhaonnisa 1 1,825 Oct-10-2020, 10:26 AM
Last Post: DeaD_EyE
  Creating shadow in OpenGL with normal? hsunteik 0 3,366 Apr-27-2017, 08:23 AM
Last Post: hsunteik
  how to destroy or remove object rendered with opengl from the screen? hsunteik 1 7,052 Apr-09-2017, 01:30 PM
Last Post: hsunteik
  NullFunctionError in opengl hsunteik 2 4,081 Apr-04-2017, 07:29 AM
Last Post: hsunteik
  Traditional OpenGL vs GLSL? hsunteik 2 4,059 Mar-27-2017, 03:54 PM
Last Post: nilamo
  How to set the window icon with OpenGL GLUT hsunteik 3 6,252 Mar-19-2017, 11:53 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020