LOLz Playing Around With OpenGL... Trippy as hell

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
davidthefat
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 529
Joined: Mon Nov 10, 2008 3:51 pm
Current Project: Fully Autonomous Robot
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: California
Contact:

LOLz Playing Around With OpenGL... Trippy as hell

Post by davidthefat »

http://www.sendspace.com/file/fuwh9p

LOLs, its really trippy... It only takes 2 for loops and whole bunch of rectangles... Its so easy to make something cool looking :lol:
I used SDL for the windowing, you can vaguely see the cube


what really surprises me is that it only uses like 4264 k of ram... Does not higher or lower.

edit: forgot to add, press escape to exit
Live-Dimension
Chaos Rift Junior
Chaos Rift Junior
Posts: 345
Joined: Tue Jan 12, 2010 7:23 pm
Favorite Gaming Platforms: PC - Windows 7
Programming Language of Choice: c++;haxe
Contact:

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by Live-Dimension »

Lmao! That's cool.

How the hell did you do that concept wise?

At a random guess, I assume you have a huge rectangle split up into really small ones, you are changing the Z depth of all the mini-rectangles to a random height relative to the object. Then your rotating the main object.

The only thing I can't explain is the uniform colour over the main rectangle, but I barely know OGL so...
Image
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by dandymcgee »

That hurts my eyes. :lol:
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
davidthefat
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 529
Joined: Mon Nov 10, 2008 3:51 pm
Current Project: Fully Autonomous Robot
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: California
Contact:

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by davidthefat »

Live-Dimension wrote:Lmao! That's cool.

How the hell did you do that concept wise?

At a random guess, I assume you have a huge rectangle split up into really small ones, you are changing the Z depth of all the mini-rectangles to a random height relative to the object. Then your rotating the main object.

The only thing I can't explain is the uniform colour over the main rectangle, but I barely know OGL so...
I was just playing around with changing the z coordinates of the rectacngles and ended up with that, putting random z coordinates
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by MrDeathNote »

Lol, that's pretty funky, it does kinda make me dizzy though!
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
User avatar
epicasian
Chaos Rift Junior
Chaos Rift Junior
Posts: 232
Joined: Mon Feb 22, 2010 10:32 pm
Current Project: Gigazilla Engine
Favorite Gaming Platforms: Dreamcast, SNES, PS2, PC
Programming Language of Choice: C/++
Location: WoFo, KY

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by epicasian »

Can't see it:
"Couldn't set 1440x900x8 video mode: No video mode large enough for 1440x900n"
That's the stderr.txt output.

(integrated video sucks lol)

~EpicAsian
User avatar
combatant936
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 39
Joined: Wed Jul 29, 2009 11:11 pm
Current Project: It's a secret!!
Favorite Gaming Platforms: N64, SNES, PS2, PC
Programming Language of Choice: C++, 65816 asm
Location: Pennsylvania
Contact:

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by combatant936 »

That'd be a cool screensaver.. xD
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by GroundUpEngine »

epicasian wrote:Can't see it:
"Couldn't set 1440x900x8 video mode: No video mode large enough for 1440x900n"
That's the stderr.txt output.

(integrated video sucks lol)

~EpicAsian
Same here. Can make 1280x720 version pl0x, I wanna see :P
User avatar
davidthefat
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 529
Joined: Mon Nov 10, 2008 3:51 pm
Current Project: Fully Autonomous Robot
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: California
Contact:

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by davidthefat »

GroundUpEngine wrote:
epicasian wrote:Can't see it:
"Couldn't set 1440x900x8 video mode: No video mode large enough for 1440x900n"
That's the stderr.txt output.

(integrated video sucks lol)

~EpicAsian
Same here. Can make 1280x720 version pl0x, I wanna see :P
Doh! Never thought about screen resolution, I just made it optimized for my scree, which is an awkward res... BRB

http://www.sendspace.com/file/66xnsb
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by GroundUpEngine »

ahh my eyes, lol thats crazy dawg! nice ;)
User avatar
davidthefat
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 529
Joined: Mon Nov 10, 2008 3:51 pm
Current Project: Fully Autonomous Robot
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: California
Contact:

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by davidthefat »

GroundUpEngine wrote:ahh my eyes, lol thats crazy dawg! nice ;)
Eh, its very simple, nothing compared to your engine, its like just 2 for loops, I am prototyping for this project I am doing.
User avatar
epicasian
Chaos Rift Junior
Chaos Rift Junior
Posts: 232
Joined: Mon Feb 22, 2010 10:32 pm
Current Project: Gigazilla Engine
Favorite Gaming Platforms: Dreamcast, SNES, PS2, PC
Programming Language of Choice: C/++
Location: WoFo, KY

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by epicasian »

That looks friggin' sweet! lol

~EpicAsian
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: LOLz Playing Around With OpenGL... Trippy as hell

Post by XianForce »

Hey, do you mind if I look at the code? I don't care about what you did so much. The thing is, I've never been able to get an OpenGL app run on my computer. It always seems to get an Access Violation... but somehow, yours just ran on my comp...

So I'm just curious, because maybe now I can get OGL to work...
Post Reply