Jump to content

  • Log In with Google      Sign In   
  • Create Account


lucky6969b

Member Since 06 Apr 2007
Offline Last Active Private

#5175776 Direct3D Setting the State of Line Widths and Point Sizes

Posted by lucky6969b on 24 August 2014 - 05:02 AM

Hello, In the Direct3D State Machine,

I wonder how can I set the state of a line width and of a point size?

In the following OpenGL Code Snippet,

it tries to reset the line width and point size of the current OpenGL states,

I wonder how I can do the same in Direct3D?

I've looked at ID3DXLine, but I don't think it is where I am looking for.

Thanks

Jack

void DebugDrawDX::end()
{
	/*
	glEnd();
	glLineWidth(1.0f);
	glPointSize(1.0f);
	*/
	
}



#5171598 Cohesion and coupling

Posted by lucky6969b on 05 August 2014 - 04:46 AM

In my project, I code that in a way that high coupling and low cohesion is not an option. For example, the Create Object method has to know about the Object map and geometry in which they are later used for navigation mesh building process. It seems unavoidable. All the stuff in Create are unrelated. Is it a bad practice? Or it is just unavoidable like I said.
bool Create(std::string name, LPDIRECT3DDEVICE9 pDevice, SkinnedMesh *pMesh, SkinnedMesh* geom, ObjectMap obj, float fAnimSpeed = 1.0f);
Thanks Jack


#5158612 [updated]: Make certain objects arrive in the scene (a lorry)

Posted by lucky6969b on 05 June 2014 - 10:52 PM

Yes, and it would be perfectly nice to post some example code for me.

Thanks

Jack




#5154556 How to make object numbering consistent and sequential?

Posted by lucky6969b on 18 May 2014 - 11:20 PM

Hi


1     7
2     8     13     18
3     9     14     19
4    10    15     20
5    11    16     21
6    12    17     22

When I put a point at "1", then drag out "2", then "3" afterwards,
Then I copy and drag 1 to 6 as a bunch of points over to 7 to 12 and so forth,
sometimes the numbers will be out of sequence.
Are there any plugins or techniques that will keep the numbering sequential
So I don't loose them because I want to use them as spatial anchors/tags/place holders what you call it when I export them to the game engine.
Thanks
Jack




#5148673 Can you quickly visualize how a quaternion would look on top of your head?

Posted by lucky6969b on 22 April 2014 - 02:38 AM

If you see a quaternion of a certain value, can you quickly determine how this orientation would look on top of your head? If you can, how can you do that handily? Thanks Jack


#5146858 A General Recast/Detour Question

Posted by lucky6969b on 14 April 2014 - 04:18 AM

Yes, actually I found out that m_npolys returns the total number of steps as a final result. Thanks for helping. Jack


#5146848 A General Recast/Detour Question

Posted by lucky6969b on 14 April 2014 - 03:08 AM

Hello, When findPath of dtNavMeshQuery returns, it fills up one of the m_smoothpath or m_straightpath buffers. But how can you tell how many steps are there inside the buffers? Thanks Jack


#5146655 Opinions needed

Posted by lucky6969b on 13 April 2014 - 02:06 AM

AFAIK, DirectX 11 only works with C#/XNA, correct me if I am wrong,

I only know C++ for the time being.

Thanks

Jack




#5081133 Working on a maxscript program with a little problem.

Posted by lucky6969b on 27 July 2013 - 11:31 PM

    local v1 = polyop.getVert pick.Object verts[1]
    local v2 = polyop.getVert pick.Object verts[2]
        
   local proj = abs (v1.pos - v2.pos)

Here v2.pos reports an error. invalid property or something

Thanks

Jack




#5069321 After reinstalling windows 7, the scene becomes black

Posted by lucky6969b on 13 June 2013 - 01:10 AM

Okay, because I chose the wrong driver. Nitrous should do the work fine and everything back to normal.


#5013520 May I know what a patch (mesh) is?

Posted by lucky6969b on 22 December 2012 - 05:02 PM

I would like to see OpenGL to grow more mature because OpenGL can be programmed on the android mobile phones while DirectX can't.


#5001727 Intel HD 2000 Performance estimation on this scenario?

Posted by lucky6969b on 17 November 2012 - 04:38 AM

I am particularly interested in using shadows in my game
So I have all of this background info
1) No background programs
2) QT
3) Database calculations (Berkeley DB)
4) Cooperative pathfinding
5) 2000-3000 agents
6) Physics
7) Some customized algorithms
8) IK and other rigid animations
9) xoliulshader.fx

Can a mobile quad core CPU for Intel HD 2000 keep up with a minimal frame rate of 25 in this case?


#4987568 What are the reasons to have an intermediate format?

Posted by lucky6969b on 06 October 2012 - 09:03 PM

Level editing?
Format conversion?
Anything else?
Thanks
Jack


#4921655 Need for Fixed Pipeline shader link

Posted by lucky6969b on 13 March 2012 - 08:40 AM

Grateful


#4916732 How does WHCA* work?

Posted by lucky6969b on 26 February 2012 - 10:02 AM

How does WHCA* work? I see sometimes the object would wind back and forth and wait for a choking point to clear. I understand that some nodes that are blocked at the certain time will not be pushed onto the open list. The rest seems to be familiar. But how come a best node candidate "hop" would happen that the best node will return to some previous positions? What are the principles/techniques used? All it seems like a magic to me.
Thanks
Jack




PARTNERS