PDA

View Full Version : A really phun piece of software



Garyu
February 15th, 2008, 10:28 AM
A friend of my brothers did this piece of software that emulates physics. When my brother told me to check it out I was like, meh, I hate physics. But this piece of software actually looks like loads of phun! :D

http://www.youtube.com/watch?v=0H5g9VS0ENM
The windows are wobbly, so it looks like he is running it in linux. There is some link to the software, but I never did anything else than look at the YouTube video. ^^

walkerk
February 15th, 2008, 10:40 AM
That was pretty cool...

JurB
February 15th, 2008, 11:01 AM
Download link (http://www.acc.umu.se/%7Eemilk/)

Can't wait to get home and play...
I sent an email to the developer regarding the license, let's hope it's GPL.

rowanparker
February 15th, 2008, 11:35 AM
I tried it but recieved this error:

ERROR: This system doesn't support shaders. Please update your graphics driver and try again
I have rather an old video card and have no idea about the drivers (okay, I could do it but everything else works fine like compiz).
Anyway to add 'shaders' support to X using the standard ati driver.

luctor
February 15th, 2008, 11:55 AM
So cool !!

wieman01
February 15th, 2008, 12:06 PM
Oh my gosh, this is so much fun. Hilarious. I have just wasted an hour playing it!

JurB
February 15th, 2008, 12:13 PM
Me wanna play, i have to wait 5 hours before i can :(
I know what i'm gonna do this WE ;)

mr.propre
February 15th, 2008, 12:50 PM
I played it on my windows vista machien, and its a fun little game. :KS

angry_johnnie
February 15th, 2008, 01:23 PM
so how'd you install it? i downloaded it, and tried running the executable, but all i get is a black window, which stays open for about a second or two. the readme file didn't shed any light. am i missing something?

hyper_ch
February 15th, 2008, 01:34 PM
this is cool :)

Zlatan
February 15th, 2008, 01:47 PM
fabulous:)

icechen1
February 15th, 2008, 03:13 PM
so how'd you install it? i downloaded it, and tried running the executable, but all i get is a black window, which stays open for about a second or two. the readme file didn't shed any light. am i missing something?

some here :( says a segmentation fault in the terminal.)

koleoptero
February 15th, 2008, 03:43 PM
Could someone post some info on how you made this to run? :confused:

forrestcupp
February 15th, 2008, 03:57 PM
Pretty awesome. I'm going to try that out. I didn't know 2D could be that cool.

conehead77
February 15th, 2008, 04:01 PM
i made it executable with
chmod 777 phun_beta_2_3_linux32
, then just run it with
./phun_beta_2_3_linux32

hope it works for you aswell :)

lode
February 15th, 2008, 04:05 PM
i made it executable with
chmod 777 phun_beta_2_3_linux32
, then just run it with
./phun_beta_2_3_linux32

hope it works for you aswell :)


My terminal says:


Parsing autoexec.cfg...
Creating window...
Segmentation fault (core dumped)

Wouldn't have the slightest idea what that means.

It looks really fun (the YouTube video, that is), though.

Havoc
February 15th, 2008, 04:09 PM
It plays on my Feisty machine.

JurB
February 15th, 2008, 04:12 PM
Maybe you should post your problem here. (http://www.gamedev.net/community/forums/topic.asp?topic_id=482775)

icechen1
February 15th, 2008, 04:43 PM
It says a segmentation fault probably because my computer dosen't have shader.oh well...

erginemr
February 15th, 2008, 04:48 PM
It says a segmentation fault probably because my computer dosen't have shader.oh well...

What is your graphics card?

icechen1
February 15th, 2008, 05:00 PM
What is your graphics card?

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
here it is

erginemr
February 15th, 2008, 05:28 PM
As far as I know, if:

glxinfo | grep GL_ARB_shader_objects
yields nothing, then it means you graphics card (or driver) does not support pixel shading.

icechen1
February 15th, 2008, 05:30 PM
As far as I know, if:

glxinfo | grep GL_ARB_shader_objects
yields nothing, then it means you graphics card (or driver) does not support pixel shading.

Says nothing but http://www.intel.com/support/graphics/sb/cs-014257.htm
says it is supported...

meho_r
February 15th, 2008, 06:38 PM
Problem with shader here too. Ati Radeon X1650 Pro and Ubuntu Restricted Graphic Card Driver, not one from Ati. Do I have to install Ati's driver to get shader support?

erginemr
February 15th, 2008, 07:29 PM
Problem with shader here too. Ati Radeon X1650 Pro and Ubuntu Restricted Graphic Card Driver, not one from Ati. Do I have to install Ati's driver to get shader support?

You should check your xorg.conf file:

less /etc/X11/xorg.conf
Look for the section:

Section "Device"
Identifier "nVidia Corporation NV17 [GeForce4 MX 440]"
Driver "nvidia"
# Option "MetaModes" "1024x768"
EndSection
If your driver says "ati" then you are using the open source version. On the other hand, if it says "fglrx" then you are already using the binary 3-D version.

erginemr
February 15th, 2008, 07:33 PM
Says nothing but http://www.intel.com/support/graphics/sb/cs-014257.htm
says it is supported...

Are you able to use Compiz (desktop effects)?

And what is the output of "glxinfo | grep direct"?

icechen1
February 15th, 2008, 08:12 PM
Are you able to use Compiz (desktop effects)?

And what is the output of "glxinfo | grep direct"?

I am using Compiz right now.
The driver is ''intel''
output is direct rendering:Yes

JurB
February 16th, 2008, 09:42 AM
Did you check the necessary libraries as instructed in the README? (boost_filesystem, SDL, SDL_image and GLEW).

Weird, all i have to do is make it executable and double-click to run.

Great phun btw!

meho_r
February 16th, 2008, 12:34 PM
You should check your xorg.conf file:

less /etc/X11/xorg.conf
Look for the section:

Section "Device"
Identifier "nVidia Corporation NV17 [GeForce4 MX 440]"
Driver "nvidia"
# Option "MetaModes" "1024x768"
EndSection
If your driver says "ati" then you are using the open source version. On the other hand, if it says "fglrx" then you are already using the binary 3-D version.
Yes, it is fglrx. Generally, 3D works with other apps. But Phun still asks for "shaders". However, I tried it on Win and it is really cool :)

meho_r
February 16th, 2008, 12:34 PM
Sorry, double post :(

pythonusr
February 17th, 2008, 06:39 AM
Bump here... I get the same segmentation fault. My card doesn't support pixel shading, but I added "App.shaders=false;" to autoexec.cfg and it still doesn't run.

Any help?

icechen1
February 18th, 2008, 04:02 AM
Bump here... I get the same segmentation fault. My card doesn't support pixel shading, but I added "App.shaders=false;" to autoexec.cfg and it still doesn't run.

Any help?

The newest version 2.51 beta works now by uncommenting that!

forrestcupp
February 19th, 2008, 03:25 PM
I wish I could have two mice. Sometimes it's hard to manipulate things one-handed.

gletob
February 19th, 2008, 10:21 PM
has anyone tried turning of desktop effect in the appearance menu
that fixed it for me

JordanII
February 19th, 2008, 11:12 PM
jordan@jordan-desktop:~/Desktop$ cd Phun; ./phun;
Parsing autoexec.cfg...
Creating window...
!! ERROR: Exception caught in main: Couldn't set video mode, SDL-error: Couldn't find matching GLX visual
Exception caught: Couldn't set video mode, SDL-error: Couldn't find matching GLX visual
!! ERROR: Exception caught: Couldn't set video mode, SDL-error: Couldn't find matching GLX visual

That's what I get. :( Could someone please help? I have integrated intel graphics.

Co.Sinecure
February 22nd, 2008, 01:42 AM
jordan@jordan-desktop:~/Desktop$ cd Phun; ./phun;
Parsing autoexec.cfg...
Creating window...
!! ERROR: Exception caught in main: Couldn't set video mode, SDL-error: Couldn't find matching GLX visual
Exception caught: Couldn't set video mode, SDL-error: Couldn't find matching GLX visual
!! ERROR: Exception caught: Couldn't set video mode, SDL-error: Couldn't find matching GLX visual

That's what I get. :( Could someone please help? I have integrated intel graphics.

I get this also.. Tried pointing LD_LIBRARY_PATH to the phun directory as suggested, tried setting 'Resources.shaders = false;' in autoexec.cfg, made sure I had a whole bunch of SDL libs installed (when running without setting LD_LIBRARY_PATH)..

Any ideas?

bruce89
February 22nd, 2008, 01:48 AM
Interesting.



Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb743f720 (LWP 16242)]
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x08266846 in rendering::Shader::Shader ()
#2 0x0826fdae in LoadFromFiles ()
#3 0x08270458 in boost::detail::function::function_obj_invoker0<boost::_bi::bind_t<rendering::Shader*, rendering::Shader* (*)(std::string), boost::_bi::list1<boost::_bi::value<std::string> > >, rendering::Shader*>::invoke ()
#4 0x08270cc0 in boost::function0<rendering::Shader*, std::allocator<void> >::operator() ()
#5 0x0827253b in util::Mentor<rendering::Shader>::Load ()
#6 0x081d3ca2 in core::ResourceManager::LoadType ()
#7 0x081d478e in core::ResourceManager::LoadAll ()
#8 0x081e1a25 in core::Subsystem::CreateWindow ()
#9 0x081d12db in main ()

schmolch
February 22nd, 2008, 03:00 AM
Im getting a segfault as well.
32bit Version on 32bit Ubuntu on a Thinkpad with Intel integrated graphics with working 3D.

I was really waiting for a program like this, hopefully it will work soon.

schmolch
February 22nd, 2008, 08:52 AM
On my Desktop with the same 32bit Ubuntu but nvidia cards it works, so i guess its a video-card issue.