Place object to camera position or world center and draw it?

Post » Thu Jun 21, 2012 7:56 am

Hi
For implementing new features to support extremely detailed objects as enhancement to the game engine i need special dummy objects which will be kind of connection between game and ENBSeries, because game is limited by performance, memory and rendering technologies. First of all with custom mod/script i want to draw some dummy mesh everywhere, at every scene (indoor also) by placing it at the position where camera is. Or (as alternative) huge dummy mesh (which is bigger than entire world, to make sure it will be rendered everywhere always) which is placed to null position without scaling and rotation at every scene where player is. I asked the same few months ago, but no one know if it's possible. Automatic placement is important, because any users made locations must be handled also.
Thank you
User avatar
Javaun Thompson
 
Posts: 3397
Joined: Fri Sep 21, 2007 10:28 am

Post » Thu Jun 21, 2012 1:44 pm

Up. Still seeking for any help.
User avatar
Myles
 
Posts: 3341
Joined: Sun Oct 21, 2007 12:52 pm

Post » Thu Jun 21, 2012 5:55 am

Would scripting a Player Alias not work? The player is the only thing in the game that's always loaded and in the current cell.
User avatar
Britney Lopez
 
Posts: 3469
Joined: Fri Feb 09, 2007 5:22 pm

Post » Thu Jun 21, 2012 9:48 am

justinOther
I don't know anything about CK, scripting for this engine, etc, but perhaps player is the character, not the camera, so when you are in third person mode, it's will be not what i need. But for such case asked another question, similar for me by retriving data from world - huge object in center of world coordinates and in every scene placed (or to draw manually in script will fit, but i don't believe engine allow this).
User avatar
Marina Leigh
 
Posts: 3339
Joined: Wed Jun 21, 2006 7:59 pm

Post » Thu Jun 21, 2012 12:53 pm

If you script a PlayerAlias with an OnLocationChange() event to move such a device to the cell the player is in, then zero out its coordinates, it should accomplish what you're after. Wherever the player is, so is the camera, so you could have either an object which spanned as far as the 3'rd person camera can pan out and have it follow the player or make it enormous and keep it static. I'd go with the following the player method, but I'm not sure exactly what you're after. If you'd like, I could set up a plugin with the Player Alias setup for you to tinker with.
User avatar
Mandi Norton
 
Posts: 3451
Joined: Tue Jan 30, 2007 2:43 pm

Post » Thu Jun 21, 2012 4:24 am

justinOther
Thanks for the answer. Let me explain what i try to do (without any knowledge of this engine modding, ha-ha). At some circumstances game engine do not send to d3d (to my mod actually) required matrices for restoring camera position and rotation relative to world null coordinate (center). I don't want to use dirty methods with hooking in to game process to read untransformed matrices, this would force me to develop for every existing game patch and for any future updates, more headache. If game will have some object to draw which is guaranteed to be in camera position on in the center of the world and huge, then i can detect it on draw call and get it's transform data for internal usage (for shadows from clouds f.e.). I read in different topics that world coordinates system in game could be more than single per location, don't know what this mean, probably some unreachable far objects drawed separately in own space and near to player other geometry are in current world space. What is "cell" i also don't know, because many names in this engine have nothing similar to standart naming in games and 3d programming. Is that enough to use player alias or not, have no idea, at least i want to be sure if it's possible at all in the engine or i'm spending time for nothing.
User avatar
Nomee
 
Posts: 3382
Joined: Thu May 24, 2007 5:18 pm

Post » Thu Jun 21, 2012 1:16 pm

Forgive me if I've misunderstood anything, but it seems like you need: a dummy mesh that will exist in every location, no matter if it's added by some other mod or not?

How often would the location of this dummy mesh need to be updated? I.e. would it have to constantly be "in front of the camera," or can it remain at a static location in the area?
User avatar
Kristian Perez
 
Posts: 3365
Joined: Thu Aug 23, 2007 3:03 am


Return to V - Skyrim