• Content count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About Lleran

  • Rank
  1. Thanks for reply and ideas. I thought for a moment... GUI may be represented as: [xml]<Background> <Border> <TextButton/> <TextButton/> <TextButton/> </Border> <Some_other_batched_GUI/> </Background>[/xml] Also it may be represented as (in rendering order): 'Background - Border - TextButton - TextButton - TextButton - Some_other_batched_GUI. So, it's necessary to have some VBO buffers: (Background + Border) - (Button) - (Text) - (Button) - (Text) - (Button) - (Text) - (Some_other_batched_GUI). Yes, this isn't ideally, but this case isn't ordinary\frequent too (Creating text processor isn't in my plans[img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]). Well, now I should to try implement this ideas. Neverwinter Nights 2 GUI - this is my ideal[img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
  2. I need advice about user interface implementation. Let's suppose that group of controls represented as single VBO buffer. For exaple (in rendering order): background - border - some icon. [sharedmedia=gallery:images:2018] Now I desire to add vbo based text (it represented as single VBO buffer too, therefore I have 2 VBO buffers). How can I implement rendering order like this: 'background - border - text - some icon' using 2 VBO buffers?
  3. Screenshots

  4. Gui_0

    From the album Screenshots

  5. Fog as posteffect

    [quote]One thing to remember when doing this is potential issues with alpha blended objects / particles / anything that does not write into depth. Plenty of ways of getting round it (alpha doing their own fogging, rendered after the full screen pass, dithered depth buffer (inferred lighting), etc.), but will require some thought of course.[/quote] Yes, you're right. I want to use fog not as weather element - only to cover far objects in fog (e.g. Morrowind). I'm talking about outdoor scenes now. In this case I can to neglect some aspects like particles and other transparent objects - only nearest objects are draw. Well... I think so.
  6. Fog as posteffect

    Thanks for reply. Yes I want to implement simple linear fog first. I know the general idea - I have implemented some posteffects before. My problem is in fog factor calculation. I used this formula f = (fogend – d)/(fogend – fogstart), but it doesn't work properly. My fragment shader code (Cg): [CODE] //----------------------------------------------------------------------------- struct FS_INPUT { float4 Position : POSITION; float2 TexCoord : TEXCOORD0; }; //----------------------------------------------------------------------------- float4 main(FS_INPUT IN, uniform sampler2D ColorMap, uniform sampler2D DepthMap, uniform float4 fogColor, uniform float fogStart, uniform float fogEnd ) : COLOR { float4 fragmentColor = f4tex2D(ColorMap, IN.TexCoord); float4 fragmentDepth = f4tex2D(DepthMap, IN.TexCoord); float fogFactor = (fogEnd - length(fragmentDepth)) / (fogEnd - fogStart); fogFactor = clamp(fogFactor, 0.0, 1.0); return lerp(fragmentColor, fogColor, fogFactor); } [/CODE]
  7. How can I make this using depth buffer and color buffer? I understand general idea, but I can't implement this well. Any ideas, glsl, cg, hlsl code?
  8. Assimp: Get bone matrix?

    I have some problems with bind-pose too (see last post there) : [url="http://www.gamedev.net/topic/617851-anyone-ever-have-a-skeletal-animation-error-like-this/page__st__20"]http://www.gamedev.n...is/page__st__20[/url]
  9. Assimp: Get bone matrix?

    [quote]I was wondering if there was a way I can just get the bone transformations at their starting positions instead?[/quote] Do you mean the bind-pose? You may try to experiment with aiScene->aiMesh->aiBone->mOffsetMatrix. Assimp themes are actual for me now too.
  10. I need to take one step for understanding animation via Assimp (I hope[img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img] ). Now I'm experementing with complex model from Morrowind. In 3ds max it looks like this (dremora, yes[img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img] ): [img]http://uploads.gamedev5.net/gallery/album_361/gallery_194564_361_23612.jpg[/img] My application can import geometry with hierarchy well... excepting one point. Screenshot from my application: [img]http://uploads.gamedev5.net/gallery/album_361/gallery_194564_361_72832.jpg[/img] This is model in bind-pose on both screenshots. As I understand I must do skinning even in bind-pose. Right? But I can't understand one point. I import animation via set of aiAnimation. And this works well: nodes are animated as in 3ds max. But how should I use a set of aiBone in aiMesh structure? Instance of aiBone has matrix, but instance of aiNode has matrix too. Is aiBone matrix relative to some aiNode? What matrix should I use for skinning? I'm confused.
  11. dremora vbomodel

    From the album Screenshots

  12. dremora 3dsmax

    From the album Screenshots

  13. Assimp : aiMesh & aiBone

    [quote name='hupsilardee' timestamp='1327507314' post='4906129'] Assimp does not instance meshes, so if your mesh has two pauldrons, they will be imported as separate meshes [/quote]I think this is not right. aiNode can refer to aiMesh by index. And one mesh can be used in some nodes with various matrix. This works fine with static geometry. As I understand it, it will not work with skinned mesh. Really, for animation(skinning) we must have two various pauldron meshes.
  14. I don't understand one thing. In Assimp aiMesh represents master-geometry. For example : model has two identical pouldrons - left and right. Therefore we can have only one mesh and use it twice. Right? But.. aiMesh has an aiBone array. Each bone refers to aiNode by mName, is this true (or maybe it's other, independent entity)? Also each bone has a matrix. But we already have matrix for each node in hierarchy. Does that mean that aiNode is not "full master geometry"? I can't understand this moment.
  15. Vertex Skinning help

    I have one question about the animation. This is a quote from the Assim documentation ([size=4]aiNodeAnim Struct Reference[/size]): [quote] The name specifies the bone/node which is affected by this animation channel. The keyframes are given in three separate series of values, one each for position, rotation and scaling. The transformation matrix computed from these values replaces the node's original transformation matrix at a specific time. [b]This means all keys are absolute and not relative to the bone default pose[/b]. [/quote] But... Does this mean that the keys of the node (in other words - matrix) are relative to its parent node? I am embarrassed by the word "absolute".