Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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  
  i lied (partial offscreen quads)  (Read 1161 times)
0 Members and 1 Guest are viewing this topic.
Offline bedelf

Junior Member




Are you suggesting coconuts migrate?


« Posted 2003-05-31 13:09:21 »

I don't think I made it 2 days without asking a question. Smiley

Anyways, whats the deal with drawing vertices that start off the screen? I'm drawing my tiles and it's all working pretty good but the ones on the sides don't show up when I'm scrolling. Is there an easy way of dealing with this? I poked around on google but I wasn't having much luck.
Offline elias

Senior Member





« Reply #1 - Posted 2003-05-31 19:33:36 »

If you draw geometric primitives like triangles or quads, OpenGL will clip them correctly to the viewport. So your problem must be somewhere else.

- elias

Offline bedelf

Junior Member




Are you suggesting coconuts migrate?


« Reply #2 - Posted 2003-05-31 21:41:52 »

Mabey I should stop coding when I'm falling alseep? Wink (i just got up) I thought I had read that somewhere, so it just fit with my expectations. Not the first time thats happened.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #3 - Posted 2003-06-01 09:16:36 »

Quote
I thought I had read that somewhere, so it just fit with my expectations.


Well, when working with glBitmap you can get a whole graphic clipped because the raster position you were using to anchor it was clipped - maybe you'd heard about that?

But no, standard OpenGL primitives with clipped vertices should render properly, as the man said.

Are you missing tiles from just two edges of the screen, or all four?

Hellomynameis Charlie Dobbie.
Offline bedelf

Junior Member




Are you suggesting coconuts migrate?


« Reply #4 - Posted 2003-06-01 09:49:10 »

Oh I suppose I should have edited, I fixed it pretty quickly. Really nasty bug in my scrolling code. Even though I was printing out all the variables I still wasn't catching it right off, so my mind went right to the wishful "not my fault folder". Wink

edit: part of the problem is i've doen scrolling code in the past a bunch for test programs, but this time I did something different and made the camera not constrained to the map bounds, caused problems Tongue
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (45 views)
2014-09-23 14:38:19

radar3301 (27 views)
2014-09-21 23:33:17

BurntPizza (63 views)
2014-09-21 02:42:18

BurntPizza (33 views)
2014-09-21 01:30:30

moogie (41 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!