|
Hi I am writing 3D modeling app and I want to speed up rendering in OpenGL. Currently I use glBegin/glEnd which is really slow and deprecated way. I need to draw very fast flat shaded models. I generate normals on CPU every single frame. This is very ...
Started by Filip Kunc on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That does mean normal and vertex array, indexed drawing cannot be used because I want flat shading (similar.
One normal per triangle just set the same normal for each vertex in the triangle.
|
|
I am currently trying the following xpath
//tr[normalize-space(td/text())='User Name']
to get all the tr that contains a td that contain 'User Name' or 'User Name' or ' User Name ' but its not working and I don't know what is wrong with the query :(
the...
Started by Karim on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
XmlDoc.SelectNodes( "//tr[td[normalize-space(.) = 'User Name']]").Count); // shows "3"
Can you please update.
|
|
I have 4 sets of values: y1 , y2 , y3 , y4 and one set x . The y values are of different ranges, and I need to plot them as separate curves with separate sets of values on the y-axis.
To put it simple, I need 3 y-axes with different values (scales) for...
Started by ldigas on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
]; %# plotyy plotyy(x,y(:,1), x,y(:,3)) %# orginial figure subplot(221), plot(x,y(:,1), x,y(:,2), x,y(:,3 = bsxfun(@times, bsxfun(@minus,y,min(y)), 1./range(y)); subplot(222), plot(....
|
Ask your Facebook Friends
|
Hello,
I'm trying to read 3D models which were created for a DirectX applications, which are defined in the following way :
In the file header, the Flexible Vertex Format (FVF) of the mesh is given (actually, I have any combinations of D3DFVF_{XYZ,DIFFUSE...
Started by Pierre Bourdon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Struct EitherVertex { float x, y, z; DWORD col; float nx refers to an entire vertex struct and not just a 3 element vector)
Of your 2 options a lot depends.
Well you should be defining it as follows.
|
|
Hey math geeks, I've got a problem that's been stumping me for a while now. It's for a personal project.
I've got three dots: red, green, and blue. They're positioned on a cardboard slip such that the red dot is in the lower left (0,0), the blue dot is...
Started by mattbasta on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
As vectors from the origin, an equation for a normal vector would be
n = ( p 2 - p 1 )x( p 3 - p 1 )
(where) dot
p 3 = green (upper-left) dot
Hi mattbasta,
right, the normal vector does not change by distance after in terms....
|
|
Using File::stat we can get the ctime of a given file. My question is how to change the ctime , which means the inode change time in seconds since the epoch, to a normal time representation like "2009-08-26 17:28:28". Is there any build-in or module can...
Started by Haiyuan Zhang on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
File::stat; my $stat_epoch = stat( 'some_file.name' )->ctime; print strftime('%Y-%m-%d %H:%M:%S', localtime( $stat_epoch ) );
All these markers like %Y, %m and so on, are defined in standard $mtime = $fs->ctime(); print time2str( ....
|
|
Hi
In the following code, I copy a string in to a char* str, which is 10 characters long, using strncpy() .
Now according to strncpy() manual, "Warning: If there is no null byte among the first n bytes of src, the string placed in dest will not be null...
Answer Snippets (Read the full thread at stackoverflow):
); *p = -1; char* pc = (char*)(p - 1); pc [0] = 'z'; pc [1] = 'z'; pc [2] = 'z'; pc [3] = 'z'; memset ); int i; for (i = SIZE; i < actual_length; i++) str[i] = 'y'; unsigned int index; for( index = 0[ 2 ] has got : c str[ 3 ] has....
|
|
I'm using Espresso to produce a minimized form of a set of boolean equations. However rather than generating logic for a programmable array logic (which is what Espresso is normally used for), I am looking to implement these on a standard microprocessor...
Started by Jack Lloyd on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
3) You can implement-by-constant on x86, accounting for up to 3 registers and taking advantage of 3-operand instructions such as (load effective address....
The register constraints or opportunities available with your specific instruction set .
|
|
Hello,
I'm parsing a source file, and I want to "suppress" strings. What I mean by this is transform every string like "bla bla bla +/*" to something like "string" that is deterministic and does not contain any characters that may confuse my parser, because...
Started by Rax Olgud on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Option 3: Use pygments with HTML output.
Strings and other tokens in any Python source file.
|
|
Sometimes being able to laugh at yourself really keeps you grounded to what really is important in life. I started sharing moments of my life with my best friend in a little segment we like to call, "Is it normal?"
Is it normal to...
For people to suggest...
Started by Neo-Christian on
, 20 posts
by 5 people.
Answer Snippets (Read the full thread at headlinezone):
Read labels it." --Douglas Adams Back to top Is it ....
Read labels of boxes and bottles looking for all the letters of the alphabet This Unlike WOOT!!! Back to top marv, on Feb 20 2007, 07:00 AM, said:
Is it normal to...
Is it normal to...
|