@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> hay guys
<0> http://cpp.sourceforge.net/?show=17662
<0> this loop never gets to SDL_PollEvent(&theEvent), so I think there's something wrong with while(SDL_PeepEvents(&theEvent, 1, SDL_PEEKEVENT, NULL) == 0)
<0> how should I fix this?
<0> anyone
<0> L:(
<1> if ffmpeg gives me a set frames in YUV format, how do I display them?
<0> okay I solved it
<2> Does someone know how can I make subwindows with SDL?
<3> you can't
<2> I was afraid of that.
<4> not yet at least. SDL 1.3 will support multiwindows.
<2> Then glut will do the trick. I guess.
<5> hello
<2> Hi can I ask questions that are related to animation here?



<6> yes
<2> Cool, if I had an animation called walk with 24 frames and one called jump with12 frames and I wanted to go from walk- to jump-animation should I do the in-between animation?
<2> (question is a bit 3d related tho..)
<6> how is it 3d?
<6> so you don't have a frame in the 24 set that is the same as in the 12?
<6> i would just try it and see what it looks like
<2> Well doing it myself is the best but it will take a large amount of time, if there where some better way to let the computer do the In-Between animation(and do it good) it would be nice.
<5> if its 3d you can interpolate each point int he model
<5> in between points in real time
<5> but it might be expensive
<5> you could do it before hand also
<6> Afat: so you mean drawing 12*24 images?
<5> does anyone here have a link to a pixel drawing demo
<2> It's 3d animation with openGL. and I guess interpolating would kinda look jerky...
<6> oh
<5> no it wouldnt
<6> what is the object?
<6> is it a person?
<2> and Robot model.
<5> anyone know how to draw a pixel to a canvas
<2> And, I want it to look realistic. Like when running and suddenly stopping. I want to get an smooth animation to an breaking animation and the to the stop.
<6> DynaStab: there is a setpixel function isn't there?
<5> geckosen1tor! not that i know of
<6> well you can lock the surface and get a pointer
<7> setpixel is just a special case of fillrect
<7> you probably don't want to do that much though
<6> rnx: yes!
<5> does anyone have a template
<5> fillrect seems really slow
<5> or is it updaterect
<8> If SDL_UpdateRect, only update as much as you need.
<5> ah yes
<5> just figured that out
<5> quite a bit faster
<5> but still not real fast
<5> much faster
<5> but not fast enough
<5> made it update a line at a time
<5> fast enough for now :P
<5> hmm...how do i get a cl*** to write to the surface...im getting seg faults
<8> You mean, write to pixels manually?
<5> ya
<5> sdl_getvideosurface?
<8> You may have to lock the surface.
<5> really...
<5> only the cl*** will be writing to the surface
<5> maybe i should just have the cl*** create the surface?
<8> if (SDL_MUSTLOCK(surface)) { SDL_LockSurface(surface); } /* Write to it.. */ if (SDL_MUSTLOCK(surface)) { SDL_UnlockSurface(surface); }
<5> Tuxiscool! hey it worked when i made the cl*** create the surface
<5> :P
<5> i just couldnt get the right memory address...or yes i had to lock it
<5> but id rather not lock and unlock if i can just hack i this way..i dont want unneccessary computation
<8> What do you think those ifs are for?
<5> computation
<8> *sigh* Just make it work, then make it work fast.
<1> how do I display an AVFrame on an YUV overlay?
<9> Arf, can't survive alt-tabbing.
<8> Why would SDL be calling my own function as soon as I execute SDL_Init()? http://rafb.net/paste/results/fUMf4V77.html
<10> eh? it doesn't...
<11> atexit is evil
<11> do you use it?



<8> No.
<10> what makes you think it would
<11> and shutdown is a reserved name
<11> don't use it
<8> It is?
<8> Ah.
<8> Huh, works now.
<8> (Changed it to shut_down)
<11> shutdown is used to close FD's :/
<11> (partially)
<8> And the linker preferred my version.
<8> Hm.
<11> C ****s
<11> with C++ that'd have been impossible
<8> Even if specify void in the parameter list it fails, huh.
<11> still uses that function?
<8> Yup.
<11> I'd have thought that to fix it
<8> Same.
<11> do you include SDL priori or posteriori to that function?
<8> Prior.
<11> yea, you'd have to forward declare SDL_Quit anywya...
<8> Thanks for the help.
<11> no proble
<11> aww, bad typing today
<10> you should get drunk less
<12> Hello, is it a good idea to use SDL font render in an opengl context?
<7> sdl doesnt render fonts
<12> with this think in an image : TTF_RenderUNICODE_Blended(font, str, color); ??
<12> i need to display unicode character in an opengl context in fact
<7> upload the sdl surface as a texture then
<13> does anyone know of a good doc for porting from linux to win32?
<11> google knows a few
<13> those are all for porting from win32 to linux
<11> "porting from linux to windows"
<13> k
<11> shouldn't involve much anyway
<13> thanx yeah thats what my cuzzin told me
<13> can i use kdevelop or does it need to be visual studios?
<11> I don't think there's kdevelop for windows
<13> i want to do it under linux since thats my home environment than port the program so my sisters don't have to use my computer with linux to run the program :D devious plan
<11> then look up cross compiling
<13> ok
<14> Ah. Even UT2004 uses bitmapped fonts.
<14> Le sigh.
<15> oh yeh realtime rendered fonts would be nice for fps in the onscreen hud
<14> I figured that with my test app >.>
<14> it's not so much realtime rendered
<11> pre-render and adjust to the quality is better
<11> (from ttf)
<14> 'spose.
<16> GotenXiao: take a look at glfont
<17> I'm having some difficulty with SDL_FillRect. I'm trying to make a surface that is a given size, make it all one color, and then blit it onto the screen
<7> why not use fillrect directly ?
<17> just fill right to the screen?
<7> exactly
<14> Ooh, new Wine release.
<14> No Slackware package up yet, though >.<
<17> well, that's a good question now that you think about it
<17> I was thinking that I"d need to have an object that can be created and destroyed (much like a sprite)
<17> but that may not be necessary
<7> it isnt
<17> the pixel format used then with MapRGBA is ok to use from screen->format, yes?
<18> ok i have a weierd problem, im linking against an sdl in my home directory, and it compiles fine, but when i run my program the output shows up in the terminal instead of in an X window....
<18> SDL_SetVideoMode is doing AA or something even though i removed that with ./configure. Also...I see a mouse pointer up in the very left corner of my terminal after running my program (an AA mouse pointer, pretty large)
<6> haha
<6> you should use caca instead of aa
<6> it gives you color
<18> i dont want either
<18> i want an X window
<18> but it spits it all out to console
<18> WTF?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #sdl
or
Go to some related logs:

Perl Unicode utf-8 conversion dbd
postfix main.cnf
EFNET mur
CentOS Unable to create temporary printer
#kde
fuser hangs EIO (Input/output error)
encript ip in irc
#fluxbox
#debian
using Trayer in Xubuntu



Home  |  disclaimer  |  contact  |  submit quotes