[Plib-users] A few silly newbie questions.....
Brought to you by:
sjbaker
From: Cameron B. <ko...@da...> - 2005-11-21 06:08:02
|
So, I have ideas bigger than my c++ ability (which is way rusty :) and Im playing around with plib (which is totally excellent!). Anyway, here are my observations/silly questions so far... (keep in mind that Ive only just hacked a skybox around the shapes example, so my plib/opengl knowledge isnt that great yet. :) Ok, so I have a window that I can move around with the mouse... but the mouse goes outside the window. How do I 'lock'/'capture' the mouse pointer in my window? I can make the cursor invisible, but can I 'lock' it? (Im thinking of tools like Halflife2's hammer editor where you hit a key to toggle between 'mouse drive' and 'mouse select'). Docs say: pwCallbacks Code says: pwSetCallbacks (I post about this a while ago, but i tripped myself again yesterday :) http://plib.sourceforge.net/ menu on the left. Would it make more sense to 'order' the libraries (ie, put PW _first_ as its really the one of the first libraries that you tend to use (being the init) rather than almost last). ssgaSky: * stars are various colors... if I read the source right, code is in there to have per star color... but it isnt passed to the ssgaSky? * making stars is RA, Dec and... ? The 3rd arg is ignored. Im not sure why its a sgdVec3 and not an sgdVec2. * if we're passing RA and Dec, then we shouldnt use 'random' ra/dec to load the database as that will cluster them round the the pole, wont it? * stars and planets are the same, yeah? (I think that code needs some more documentation... Ill see if I can work out what its doing and make something more clear. I havnt get got to why I need repaint yet ;). long way off....... ------------------- Ive been thinking about player models (way off yet ;) and lets say I have a number of mesh 'parts' for a walking human (head, body, legs, arms). What is the best way to model that? Opengl/plib wise, what is the best way to create (say) different leg positions in a footstep? From my reading of the docs so far, Im guessing that I could have a ssgTweenController driving a set of models for foot position and then set the controller to various values. (I was going to ask if I should use a tween controller or select from a series of models, but the tween one looks like the way to go) (I say, answering my own question :) excellent... ------------ Anyway, Im finding plib excellent! As a sysadmin, I love the modular approach to be great! Its just big enough that I can hold enough of the state in my head at once as I learn it and it builds wonderfully. Just enough to get me into trouble... :) -- / `Rev Dr' cam at darkqueen.org Roleplaying, virtual goth \ < http://darkqueen.org Poly, *nix, Python, C/C++, genetics, ATM > \ [+61 3] 9809 1523[h] skeptic, Evil GM(tm). Sysadmin for hire / ---------- Random Quote ---------- The decision doesn't have to be logical; it was unanimous. |