UMLComputerGraphics / GraphicsProject

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

Fullscreen #78

Closed ltran1 closed 11 years ago

ltran1 commented 11 years ago

John and I were working on various aspects of the GUI in regards to the camera and screen, and we couldn't locate a fullscreen function. Can someone make it or tell us how to?

jnsnow commented 11 years ago

There isn't one. Currently, apps can be launched fullscreen by trying

export GLUT_FULLSCREEN=TRUE

then launching the app.

You can trace why this works inside of Engine::init.

ltran1 commented 11 years ago

I'm doing something wrong and I don't know why. I have it set in the callbacks where pressing F7 would call Engine::setFullScreen and in it is glutFullScreenToggle(). Compiles and runs fine, but the moment you try to press F7, it shows the project in fullscreen for half a second and then crashes due to segmentation fault. I did an alternative to glutFullScreenToggle() by trying to switch between glutReshapeWindow() and glutFullscreen() but I get the same result.

jnsnow commented 11 years ago

Do you have a stacktrace for the segfault or any error messages to share?

Did you push the code that segfaults?

ltran1 commented 11 years ago

Just pushed the code to master. Don't think it has any other errors besides showing the segmentation fault in the terminal.

jnsnow commented 11 years ago

This actually works OK for me, F7 toggles fullscreen appropriately as far as I can tell.

jnsnow commented 11 years ago

@ltran1 can you confirm that this is still broken on the most recent codebase?

ltran1 commented 11 years ago

I believe someone else did a hotfix to it earlier and is probably why its working now... I would totally love to test, but the latest codebase now has fmod integrated into the main project, which still doesn't want to compile on my laptop. Unfortunately :(

jnsnow commented 11 years ago

Alright, let's figure that out...

Can you type these two things for me?

cat /etc/ld.so.conf.d/* sudo find / -name 'libfmodex.so' -print 2>/dev/null

Pastebin the results, and if you could, pastebin the error you get during compilation.

nuclearmistake commented 11 years ago

^

On Mon, May 6, 2013 at 9:02 PM, John Snow notifications@github.com wrote:

Alright, let's figure that out...

Can you type these two things for me?

cat /etc/ld.so.conf.d/* sudo find / -name 'libfmodex.so' -print 2>/dev/null

Pastebin the results, and if you could, pastebin the error you get during compilation.

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

Eric McCann University of Massachusetts, Lowell Department of Computer Science One University Avenue Olsen Hall, Room 304 Lowell, MA 01854 Lab: 978.934.3385 Email: emccann@cs.uml.edu Homepage (lab): www.cs.uml.edu/robots Homepage: www.emccann.net

ltran1 commented 11 years ago

Running the two lines: http://pastebin.com/cpZxv8JK compile errors (very long): http://pastebin.com/XBnVqmxG

jnsnow commented 11 years ago

you missed the asterisk at the end of the cat command, it's supposed to show us what goodies are /inside/ that dir.

nuclearmistake commented 11 years ago

This will show anywhere ldconfig believes fMod is installed.

sudo ldcondig -p | grep fmodex

And this should delete any messed up fMod installed by make, allowing make to reinstall it with a working one... If the output of the first command below shows 1 or 2 matches, then run the 2nd

find /usr -name f[Mm]od -type d

for x in find /usr -name f[Mm]od -type d; do sudo rm -Rf $x; done

In other news, xargs is for sissies. Holla for a dolla. On May 7, 2013 2:12 AM, "John Snow" notifications@github.com wrote:

you missed the asterisk at the end of the cat command, it's supposed to show us what goodies are /inside/ that dir.

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

ltran1 commented 11 years ago

My apologies, heres the one with the asterisk: http://pastebin.com/uUDF9FQr

jnsnow commented 11 years ago

It looks and works OK for me on Fedora 18 and Ubuntu 13.04, so I'm just going to close this, because after today it won't matter anyway.