how to draw 3d box in word
| |
| | | | | | | | |
We strive to provide all our services for gratuitous and non interrupt your visit with intrusive advertisements or restrictions - support us by disabling your ad blocker or whitelisting our site.
| |||||||
| Thread Tools |
| D3D 3D Box - Depict Part |
| | #1 |
| Junior Member Join Date: Mar 2008 Posts: 43 Reputation: 180 | D3D 3D Box - Draw Part Hullo guys, i dont know if it is needed past anybody but i searched around ane whole day on the internet for a 3D Box office and couldnt find it. Thats why i carried on with it myself and here are the results. Here is a motion picture, that you lot see which points y'all have to give to the Draw Role, i am not a pigment skillful but i call up its possible to see what i mean. And the post-obit is the code which you demand for the draw function. If you give the parameters correctly information technology should describe a 3D box effectually the parameters you give in Code: //announcement stuff ID3DXLine *pLine; //Liner //here is the functions torso void Draw3DBox(float x_bottom_left, float y_bottom_left, float x_bottom_right, float y_bottom_right, float x_top_left, float y_top_left, bladder x_top_right, float y_top_right, float x_forward_bottom_left, float y_forward_bottom_left, float x_forward_bottom_right, float y_forward_bottom_right, float x_forward_top_left, float y_forward_top_left, float x_forward_top_right, float y_forward_top_right, int a, int r, int m, int b) { if(!IsBadReadPtr(pLine, sizeof(ID3DXLine))) { D3DXVECTOR2 vLine1[2]; D3DXVECTOR2 vLine2[2]; D3DXVECTOR2 vLine3[2]; D3DXVECTOR2 vLine4[ii]; D3DXVECTOR2 vLine5[2]; D3DXVECTOR2 vLine6[2]; D3DXVECTOR2 vLine7[2]; D3DXVECTOR2 vLine8[2]; D3DXVECTOR2 vLine9[2]; D3DXVECTOR2 vLine10[ii]; D3DXVECTOR2 vLine11[two]; D3DXVECTOR2 vLine12[two]; float t=1; pLine->SetWidth( t ); pLine->SetAntialias( imitation ); pLine->SetGLLines( fake ); //bottom left to bottom right vLine1[0].x = x_bottom_left; vLine1[0].y = y_bottom_left; vLine1[1].ten = x_bottom_left+(x_bottom_right-x_bottom_left); vLine1[1].y = y_bottom_left; //bottom left to superlative left vLine2[0].x = x_top_left; vLine2[0].y = y_top_left; vLine2[1].x = x_top_left; vLine2[i].y = y_top_left+(y_bottom_left-y_top_left); //bottom right to top right vLine3[0].x = x_top_right; vLine3[0].y = y_top_right; vLine3[ane].x = x_top_right; vLine3[i].y = y_top_right+(y_bottom_right-y_top_right); //top left to top right vLine4[0].x = x_top_left; vLine4[0].y = y_top_left; vLine4[i].10 = x_top_left+(x_top_right-x_top_left); vLine4[1].y = y_top_left; //from top left to top left forward vLine5[0].x = x_top_left; vLine5[0].y = y_top_left; vLine5[1].x = x_top_left+(x_forward_top_left-x_top_left); vLine5[one].y = y_top_left+(y_forward_top_left-y_top_left); //from bottom left to lesser left frontwards vLine6[0].x = x_bottom_left; vLine6[0].y = y_bottom_left; vLine6[one].x = x_bottom_left+(x_forward_bottom_left-x_bottom_left);// vLine6[1].y = y_bottom_left+(y_forward_bottom_left-y_bottom_left);// //from bottom right to bottom correct forrard vLine7[0].x = x_bottom_right; vLine7[0].y = y_bottom_right; vLine7[1].x = x_bottom_right+(x_forward_bottom_right-x_bottom_right);// vLine7[1].y = y_bottom_right+(y_forward_bottom_right-y_bottom_right);// //from height right to top right forward vLine8[0].x = x_top_right; vLine8[0].y = y_top_right; vLine8[i].x = x_top_right+(x_forward_top_right-x_top_right);// vLine8[1].y = y_top_right+(y_forward_top_right-y_top_right);// //lesser left forward to bottom correct forrard vLine9[0].10 = x_forward_bottom_left; vLine9[0].y = y_forward_bottom_left; vLine9[ane].ten = x_forward_bottom_left+(x_forward_bottom_right-x_forward_bottom_left); vLine9[one].y = y_forward_bottom_left; //bottom left forward to top left forward vLine10[0].ten = x_forward_top_left; vLine10[0].y = y_forward_top_left; vLine10[1].x = x_forward_top_left; vLine10[one].y = y_forward_top_left+(y_forward_bottom_left-y_forward_top_left); //bottom right forward to acme right forward vLine11[0].10 = x_forward_top_right; vLine11[0].y = y_forward_top_right; vLine11[1].10 = x_forward_top_right; vLine11[1].y = y_forward_top_right+(y_forward_bottom_right-y_forward_top_right); //top left forrard to summit right forward vLine12[0].ten = x_forward_top_left; vLine12[0].y = y_forward_top_left; vLine12[1].x = x_forward_top_left+(x_forward_top_right-x_forward_top_left); vLine12[1].y = y_forward_top_left; pLine->Brainstorm( ); pLine->Draw( vLine1, 2, D3DCOLOR_ARGB(a, r, g, b ) ); pLine->Draw( vLine2, 2, D3DCOLOR_ARGB(a, r, g, b ) ); pLine->Draw( vLine3, ii, D3DCOLOR_ARGB(a, r, g, b ) ); pLine->Draw( vLine4, 2, D3DCOLOR_ARGB(a, r, k, b ) ); pLine->Draw( vLine5, 2, D3DCOLOR_ARGB(a, r, g, b ) ); pLine->Depict( vLine6, 2, D3DCOLOR_ARGB(a, r, g, b ) ); pLine->Depict( vLine7, 2, D3DCOLOR_ARGB(a, r, g, b ) ); pLine->Draw( vLine8, 2, D3DCOLOR_ARGB(a, r, g, b ) ); pLine->Draw( vLine9, ii, D3DCOLOR_ARGB(a, r, g, b ) ); pLine->Draw( vLine10, two, D3DCOLOR_ARGB(a, r, g, b ) ); pLine->Draw( vLine11, 2, D3DCOLOR_ARGB(a, r, thou, b ) ); pLine->Depict( vLine12, two, D3DCOLOR_ARGB(a, r, g, b ) ); pLine->End( ); } } //post-obit you put in endscene for instance: D3DXCreateLine(d3dDevice, &pLine ); //Create line (put that for example in endscene or whatever you hooked //and concluding simply not least lets phone call our function: Draw3DBox( /*all parameters for example basic*/ ); Of cause its possible to apply Vectors on that function but i tried to keep it every bit simple equally i could. In the case at that place are questions, reply right here, |
| | |
| | #ii | |||||||||||
| � Alkies Bowwow � Join Date: November 2004 Posts: ane,467 Reputation: 4255 Points: 21,028, Level: 20
Level up: 15%, i,372 Points needed
Activity: 1.half-dozen%
| Dainty job mate, Not much of a fan of D3D Myself, but looks skilful. +Rep. __________________ | |||||||||||
| | |
| | #3 |
| A Legend Join Date: Feb 2007 Posts: 262 Reputation: 372 | thanks for shareing this ima give it ago __________________ (\_/) |
| | |
| | #four |
| Inferior Member Join Date: Mar 2008 Posts: 43 Reputation: 180 | Jep i try to requite something dorsum of what i learned downwards here. 1 thing. Atm i give over the Bones for the Box. (Foots, Caput, etc) But of cause it shakes if the enemy walk. Accept anybody ideas how i could solve that? Of cause i want information technology to resize every bit farer the enemy is. But i endeavor to avert that shaking if the enemy walk. Maybe somebody has an idea which could help me alot =) |
| | |
| | #5 |
| A Legend Join Engagement: Feb 2007 Posts: 262 Reputation: 372 | tried it out it works great itll exist a great addition to my non exsistent esp. __________________ (\_/) |
| | |
| | #6 |
| Inferior Fellow member Join Engagement: Mar 2008 Posts: 43 Reputation: 180 | Nice that you like information technology |
| | |
| | #seven |
| A Legend Join Appointment: February 2007 Posts: 262 Reputation: 372 | tried information technology out it works great itll be a great add-on to my non exsistent esp. __________________ (\_/) |
| | |
| | #8 | |||||||||||
| The Legendary Cheater Join Date: Apr 2005 Location: United states of america Posts: 531 Reputation: 32985 Points: 59,314, Level: 36
Level up: 17%, iii,086 Points needed
Activity: two.eight%
| what points do u guys have i deceit seem to go it to work | |||||||||||
| | |
| | #9 |
| Junior Member Join Date: Mar 2008 Posts: 43 Reputation: 180 | Which points you lot take already? Employ bones or something. There is a Eradicator source somewhere in the download section. That 1 uses basic aswell, apply that as a tip. |
| | |
We strive to provide all our services for gratis and non interrupt your visit with intrusive advertisements or restrictions - back up u.s. past disabling your ad blocker or whitelisting our site.
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Terminal Post |
| [Source] Describe 3D Box | godly | CounterStrike 1.5, 1.6 and Mods | 2 | 16th Dec 2011 04:21 PM |
| [Assistance] pb - get part scanning screenshot role | ChaosLeader | Anti-Cheat Bypass | 7 | 9th October 2011 12:10 PM |
| [Question] Draw Text Function for CD3DFont? | JMelendez | Direct3D | 6 | 3rd September 2009 eleven:41 PM |
| Releasing Draw Function? | Virus7799 | Direct3D | 2 | 19th May 2008 08:08 PM |
| D3D - Draw Circumvolve Function | MountedMG | Direct3D | 3 | 3rd May 2008 x:41 AM |
| Tags |
box, d3d, draw, function |
« Previous Thread | Next Thread »
|
|
All times are GMT. The time at present is 07:eighteen PM.
| |
no new posts
Source: https://www.unknowncheats.me/forum/direct3d/53071-d3d-3d-box-draw-function.html
.
Which parameters yous give to the function to stop shaking (like if you use human foot for the lesser parts)
Similar Threads
Post a Comment for "how to draw 3d box in word"