Jump to content

  • Log In with Google      Sign In   
  • Create Account


Tasaq

Member Since 05 Nov 2011
Offline Last Active Yesterday, 04:53 PM
-----

#5140014 My new scene-river zone

Posted by Tasaq on 18 March 2014 - 08:39 AM

I like how the water looks very much, but I would reduce it's simulation speed because it looks super fast for me :)




#5139936 c# game

Posted by Tasaq on 18 March 2014 - 03:26 AM

You need to learn to help yourself and how to post/ask questions properly.

 

I need to quote and extend what L. Spiro wrote, since it is so essential. This is ultimate skill for a programmer, if you can't find information you require, sorry, but you won't go far. If you truly can't find anything, then you need to try do it yourself. If you fail, then you ask. If you won't figure something out on your own, you won't learn or quickly forget. And it is very important to be POLITE, always.

Btw, how did that guy get 772 rep? ;o




#5117282 BIM rendering tool for game development in opengl or ogre3d

Posted by Tasaq on 16 December 2013 - 04:26 AM

Doesn't your BIM application support exporting to common 3D file format (3ds, fbx, collada, ase, obj)? Which BIM app you want to use? I rendered a building from Revit in my DirectX app no problem, I just exported it from Revit as obj and loaded with Assimp.
 
EDIT:
 
I noticed you mentioned Revit in tags. If you worked with Revit you should know Jeremy Tammik's blog, here's a post on Revit 2014 obj exporting:
 
Blog Post.




#5111785 Deffered rendering : store all lightsdata

Posted by Tasaq on 25 November 2013 - 02:54 AM

For deferred renderer it is common to do it like this - foreach light draw a bounding sphere/bounding screen-aligned quad/bounding cone (it depends on type of light and your preference), send info to shader about your light (position, color etc.) and blend it.




#5107263 XNA - I like it, but should I continue to use it for 2D games?

Posted by Tasaq on 05 November 2013 - 03:17 PM

I don't see any problem, unless you want to use dx10 or higher features that is. Windows 8 is normal Windows. You are not forced to make metro apps for win8.

 

If you want to go higher you can switch to MonoGame or SharpDX toolkit - they are very very very similar to XNA in terms of API design, so it should be easy to get used to :)




#5101557 Increasing performance

Posted by Tasaq on 15 October 2013 - 09:17 AM

Not too long ago I asked a question about strong guassian blur with focus on performance:

http://www.gamedev.net/topic/648412-gaussian-blur-with-large-radius/#entry5098093

 

You might find it helpful :)




#5088116 QuadTree ray collision

Posted by Tasaq on 22 August 2013 - 09:52 AM

Hi,

 

I am forced to ask this shameful question here. I've build a quadtree structure which contains 2D triangles. Everything would be nice, cool and fast if only I would knew how to use it rolleyes.gif

 

My aim is to cast a 2D ray from given point with given direction, and get the closest triangle position. And my question is how should I approach that? Should I add my ray to quadtree and there find collision? Or should I aproach it different way?

 

 




#5076374 Any Detailed Tutorials?

Posted by Tasaq on 09 July 2013 - 10:50 AM

The reason I'm not using an already existing engine, like the Unreal Engine, is simply because they are too limited.

 

I beg to differ. While it's true that dedicated (homegrown) engine is better because you create what you need, but do you think you can write everything from scratch? It would take a lot of time. Look at other engines, Unity 3D which allow you to use C#, Cry Engine 3 sdk where you can use C++, lua or C#(CryMono), Torque 3D and many more.

 

As for your original question I would suggest using Havok, it has very good documentation and source code of example applications.




#5072966 Best C# libraries

Posted by Tasaq on 26 June 2013 - 09:21 AM

SharpDX got it's toolkit, it's clone of xna but you can use dx11 features. I believe they've got their model loading working (not only .x and .fbx files, but many more).

I've been also using JBBRXG11: http://jbbrxg11.codeplex.com/ . It's something like add-on to xna to enable dx11 features. It also got animations for models.

Depending what you want to do, Bepu is my favourite 3D physics engine for c# (it supports XNA, sharpDX and slimDX), for 2d you got port of Box2D and Farseer :)




#5065755 Collision (AI)

Posted by Tasaq on 29 May 2013 - 02:52 AM

Obstacle is obstacle, if you don't want to make 3D dogfight there is no need for 3D path finding. You can 'flaten' your houses, rocks, fences etc. For dynamic objects it's a worse case scenario. Eitherway you are bound to use a* or it's variation somewhere.

 

Look at the slides from Valve on L4D AI to get some ideas:

 

http://www.valvesoftware.com/publications/2009/ai_systems_of_l4d_mike_booth.pdf

 

Note that it's fully 3D game, with tons of zombies.




#5065436 Collision (AI)

Posted by Tasaq on 28 May 2013 - 12:46 AM

If you don't have any ramps, cliffs, caves etc. it's still a 2D problem. So any pathfinding technique is way to go. If your map is more complex, check out navigation meshes.




#5037355 OpenGL vs DirectX

Posted by Tasaq on 27 February 2013 - 04:01 PM

I suggest changing the topic name because current one looks like asking for a meaningless war biggrin.png

 

Rewriting your whole code from openGL to DirectX would be time consuming, I would advise you to only change the strictly operating system bound functions (i think it's obvious one, and I  can see you already achieved that). But if your aim is to learn (or revise) directx, it might be a good idea to do it ;)




#5027663 How to draw lots of billboard sprites

Posted by Tasaq on 31 January 2013 - 05:11 PM

For bilboarding in my instanced particles I use folowing code, works like a charm:

            if (this.style == OrientStyle.Yonly)
            {
                Matrix billboardWorld = Matrix.Identity;
                billboardWorld.Forward = Vector3.Normalize(camera.Position - this.Position);
                billboardWorld.Right = Vector3.Normalize(Vector3.Cross(billboardWorld.Forward, Vector3.Up));
                billboardWorld.Translation = this.Position;
                Transform = Matrix.CreateScale(this.size) * billboardWorld;
            }
            else
            {
                var billboardWorld = Matrix.Invert(camera.ViewMatrix);
                billboardWorld.Translation = this.Position;
                Transform = Matrix.CreateScale(size * (life / 3000.0f)) * billboardWorld;
            }


For transparecy I used inferred shading's 3 layered transparency, but I am curious about forward approaches too (I have no idea how I can efficiently sort back to front instanced geometry, so i believe OIT is a must).




#5020393 Shader not getting to the pixel shader

Posted by Tasaq on 11 January 2013 - 11:52 AM

But apparently I’m not always getting to the pixel shader and it stops in the vertex for some reason. (I have modified the pixel shader to output always a red pixel, so I know when it goes through).
Are You sure about that? :)
It will only make red the object's you want to render (say, teapot for instance), everything else will be 'clear' color, since there's no object in that place, there's no need to 'pixel shader' it.

EDIT:
I also noticed You did this:

Matrix view = Matrix.CreateLookAt(modelTransform.Translation, new Vector3(0, 500, 75), Vector3.Up);

What happens now is that object is being culled (unless you set cull mode to none).
1st parameter is camera position, 2nd is LookAt, if you swap them(I believe You wanted to set the camera to look at your object) it might work :)


#5009037 Mesh swap in XNA Animation

Posted by Tasaq on 10 December 2012 - 04:43 AM

Hi,
I am learning how to skin meshes (never have I done it, so I think it's high time o.O), I am using ported XNA Animation Component Library to XNA 4.0. Everything works fine except one thing. I want to be able to swap meshes inside a model (for instance, say my character is a sword master, and I want to change his weapon in hand). I noticed that XNA animation requiers for all objects in my file to have weights (which I am not sure about). I am also using custom effects.
So do you have any ideas how to change mesh inside model with XNA animation (i.e. swap it with mesh from other model)?
I also want it to be animated so I need to create animation inside character model for my weapon Posted Image
EDIT:
Solved it, took me a lot time yesterday to search the internet and after posting a topic on gameDev i solved it in few minutes :)
For those who want to do same thing as I do and don't know how:
In my weapon file I created a bone named the same way as in my character model and I added skin modifier to the weapon and added that bone(I am not sure if it is required). then in XNA:
sword.World = character.modelAnimator.GetAbsoluteTransform(character.modelAnimator.BonePoses["weapon"].Index) * character.World;
(sword and character are objects of my class to store info that I use, like materials, animations etc.).
I also add a flag for proxy weapon in character model to not draw it :)




PARTNERS