UMLComputerGraphics / GraphicsProject

UML Graphics 2 Final Project 2013
7 stars 1 forks source link

Particle System on Mainline Broke #51

Closed jnsnow closed 11 years ago

jnsnow commented 11 years ago

Running partTest2.cpp:

(gdb) bt

0 0x0000000000000000 in ?? ()

1 0x000000000040648d in Angel::InitShader (vShaderFile=0x43d43f "shaders/vParticle2.glsl",

fShaderFile=0x43d427 "shaders/fParticle2.glsl", gShaderFile=0x43d410 "shaders/gParticle.glsl", gs_inType=0, 
gs_outType=5, gs_numVertOut=12) at Common/InitShader.cpp:248

2 0x000000000040495e in init () at Binaries/partTest2.cpp:45

3 0x0000000000404cb3 in main (argc=1, argv=0x7fffffffe1b8) at Binaries/partTest2.cpp:111

InspectorConstructor commented 11 years ago

fantastic. since partTest2 works on OSX, it appears to be a cross-platform problem. sigh. I will get a linux box and troubleshoot this week.

jnsnow commented 11 years ago

Hi Nick ( @InspectorConstructor ) and Nick ( @nickavv )

Let's get together furiously soon and work this out, it needs to be good to go for 4/29, but I'd like to have this done for Thursday if we can.

Let me know your preferences for when or how you'd like to approach this.

I'll update this bug if I come across any extra info.

nuclearmistake commented 11 years ago

HOW DOES IT FEEL, MAC USERS?! HOW DOES IT FEEL? (In jest)

:-P On Apr 23, 2013 5:00 PM, "John Snow" notifications@github.com wrote:

Hi Nick ( @InspectorConstructor https://github.com/InspectorConstructor) and Nick ( @nickavv https://github.com/nickavv )

Let's get together furiously soon and work this out, it needs to be good to go for 4/29, but I'd like to have this done for Thursday if we can.

Let me know your preferences for when or how you'd like to approach this.

I'll update this bug if I come across any extra info.

— Reply to this email directly or view it on GitHubhttps://github.com/UMLComputerGraphics/GraphicsProject/issues/51#issuecomment-16886159 .

nickavv commented 11 years ago

I can do Thursday On Apr 23, 2013 5:00 PM, "John Snow" notifications@github.com wrote:

Hi Nick ( @InspectorConstructor https://github.com/InspectorConstructor) and Nick ( @nickavv https://github.com/nickavv )

Let's get together furiously soon and work this out, it needs to be good to go for 4/29, but I'd like to have this done for Thursday if we can.

Let me know your preferences for when or how you'd like to approach this.

I'll update this bug if I come across any extra info.

— Reply to this email directly or view it on GitHubhttps://github.com/UMLComputerGraphics/GraphicsProject/issues/51#issuecomment-16886159 .

jnsnow commented 11 years ago

I can make Thursday work. I'll buy dinner. --jh

On Tue, Apr 23, 2013 at 5:27 PM, Nick Ver Voort notifications@github.comwrote:

I can do Thursday On Apr 23, 2013 5:00 PM, "John Snow" notifications@github.com wrote:

Hi Nick ( @InspectorConstructor https://github.com/InspectorConstructor) and Nick ( @nickavv https://github.com/nickavv )

Let's get together furiously soon and work this out, it needs to be good to go for 4/29, but I'd like to have this done for Thursday if we can.

Let me know your preferences for when or how you'd like to approach this.

I'll update this bug if I come across any extra info.

— Reply to this email directly or view it on GitHub< https://github.com/UMLComputerGraphics/GraphicsProject/issues/51#issuecomment-16886159>

.

— Reply to this email directly or view it on GitHubhttps://github.com/UMLComputerGraphics/GraphicsProject/issues/51#issuecomment-16887653 .

jnsnow commented 11 years ago

Current status: vf2 segfaults partTest2 produces some output (a rainbow smoke trail) !! this is a change! partTest segfaults (No color function) FinalProject segfaults (as above)

nickavv commented 11 years ago

A rainbow smoke trail???

jnsnow commented 11 years ago

Yeah, it's like the "smoke trail" demo you showed in class today, except instead of yellow, it's rainbow colors...

is it seriously not supposed to be doing that?

Because that's a really cool thing to do by accident.

nickavv commented 11 years ago

No, it's supposed to look like a candle flame, which should now be blue at the base and orange and red above that. I just pulled, and it looks this way for me, not sure why you're seeing that

franckamayou commented 11 years ago

I have blue, orange and red here..

jnsnow commented 11 years ago

awesome.

InspectorConstructor commented 11 years ago

so the init shader bugs were (OH GOD PLEASE, PLEEEEEEEEEEEEEEEASE) corrected, still working about partTest and partTest2

InspectorConstructor commented 11 years ago

ok nope, still broken on linux. no idea why, and no idea how to fix. geometry shaders on linux: omgwtfbbq repair attempts remaining: 3 repair tactic: dart_throw

In Angel::InitShader(): 1) remove the calls to glProgramParameteriEXT() and see if it works. 2) replace the calls to glProgramParameteriEXT() with glProgramParameteri() and see if it works.

If all else fails,

3) remove the geometry shader and render the particles as GL_POINTS.

ImperatorFeles commented 11 years ago

And it's fixed with 50c0729ff2c79cf7eb0e9c0788a20938cb09180d

The issue with particles on Linux was calling srand() every time we tried to get a random value. After deleting the call, everything was gravy.