DaniWeb Forum Index
>
Search Forums
RSS
Search Results
1
2
>
•
•
•
•
Showing results 1 to 40 of 48
Search took
0.03
seconds.
Search:
Posts Made By:
MattEvans
Save these search results for 24 hours
Forum:
Game Development
May 12th, 2009
Replies:
10
Solved:
Okay, so I suck at math
Views:
1,608
Posted By
MattEvans
1
Re: Okay, so I suck at math
What kind of 2D library? Graphics, or physics? or something else?
I like this book alot, it says collision detection, but it also has a lengthly intro to many of the concepts of simulated 'space...
Forum:
Game Development
May 10th, 2009
Replies:
4
Solved:
OpenGL - Transformation matrix
Views:
1,955
Posted By
MattEvans
1
Re: OpenGL - Transformation matrix
It's easy enough to arbitrarily set the rotation point, e.g. this will work:
case 'E':
case 'e':
{
//Rotation of the red square.
glMatrixMode(GL_MODELVIEW_MATRIX);...
Forum:
Game Development
Apr 17th, 2009
Replies:
5
Max No. points/polys for 3D modeler.
Views:
711
Posted By
MattEvans
1
Re: Max No. points/polys for 3D modeler.
#include <vector>
#include <iostream>
int main ( void )
{
std::vector < int > myvector;
for ( int i = 0; i != 10; ++i ) {
myvector.push_back ( i );
}
int * myarray = &( myvector...
Forum:
Game Development
Apr 6th, 2009
Replies:
4
OpenGl 2D orthographic problem
Views:
1,480
Posted By
MattEvans
1
Re: OpenGl 2D orthographic problem
Of course it is possible; there is necessarily always a projection from object>screen coords and there is always a projection from screen>a subset of object coords on a plane parallel with the view...
Forum:
Game Development
Mar 20th, 2009
Replies:
1
Collision Detection algorithm between two arbitrarily shaped sprites
Views:
1,116
Posted By
MattEvans
1
Re: DirectX - Collision detection
Brute force isn't too bad.. you don't have to check every pair of pixels between the two sprites, you only have to check each pixel space to see if it's occupied twice, and that's not very costly (...
Forum:
Game Development
Feb 24th, 2009
Replies:
2
Directx Input / Movement Q
Views:
937
Posted By
MattEvans
1
Re: Directx Input / Movement Q
Are your transforms 'full 3d' or 'half 3d'? That is, when your character rotates, can they rotate over all axes, or just around an 'up' vector? Are you using matrices as the authoritative...
Forum:
Game Development
Jan 12th, 2009
Replies:
5
I need math formula for this
Views:
1,084
Posted By
MattEvans
1
Re: I need math formula for this
Lines do not have ends: although a line is often uniquely defined by two endpoints coincident with the line; a 'line' is correctly considered to be infinite in both directions.
Line segments are...
Forum:
C++
Nov 26th, 2008
Replies:
8
Solved:
Problem with Returning Pointer to local variable
Views:
1,811
Posted By
MattEvans
1
Re: Problem with Returning Pointer to local variable
That "the behaviour when dereferencing an invalid pointer is undefined" is fact.
Other than that, the best you'll get (in terms of an explanation for why you get this output) is speculation or...
Forum:
Game Development
Oct 30th, 2008
Replies:
7
An A* question for the ..Perfomance gamers... :D
Views:
1,062
Posted By
MattEvans
1
Re: An A* question for the ..Perfomance gamers... :D
Hey, sorry for the delay, been a bit busy.
Cool.
Well, it's open space graph, but the sparseness of the environment is a factor in choosing the method used to generate the graph... There...
Forum:
Game Development
Oct 22nd, 2008
Replies:
7
An A* question for the ..Perfomance gamers... :D
Views:
1,062
Posted By
MattEvans
1
Re: An A* question for the ..Perfomance gamers... :D
Some questions to you:
- are you using the A* for AI character path planning? ( usual case ), is the 3D space unbounded? if so, are you ok with the fact that 3D A* search in infinite space will...
Forum:
JavaScript / DHTML / AJAX
Oct 9th, 2008
Replies:
25
Solved:
Firefox - Restrict Input through Javascript
Views:
7,387
Posted By
MattEvans
1
Re: Firefox - Restrict Input through Javascript
alpha = [A-Za-z]
numeric = [0-9]
special characters = could be [^A-Za-z0-9], but it depends on your definition of 'special'. usually it's prefered to treat _ ( underscore ) as non-special at...
Forum:
Game Development
Sep 10th, 2008
Replies:
8
Image processing using OpenGL
Views:
2,240
Posted By
MattEvans
1
Re: Image processing using OpenGL
DirectX doesn't necessarily have better performance : it really depends how the graphics card manufacturers build their cards, and write their drivers. Without hardware acceleration, DirectX is...
Forum:
Game Development
Aug 12th, 2008
Replies:
10
General Collision Detection
Views:
2,744
Posted By
MattEvans
1
Re: General Collision Detection
For 2D point-in-convex or point-in-non-convex, see the crossing test on this page: http://www.erichaines.com/ptinpoly/. As its given there, that test will work in 2D only, for a 2D shape embedded in...
Forum:
JavaScript / DHTML / AJAX
Aug 2nd, 2008
Replies:
2
how to disable X
Views:
936
Posted By
MattEvans
1
Re: how to disable X
You can't disable the close button in a popup. It's part of the browser; a webpage rightfully can't assume control over all aspects of the browser.
Reorganize your logic so that it isn't an issue,...
Forum:
Game Development
Jun 26th, 2008
Replies:
3
Getting SDK’s for the WII
Views:
10,082
Posted By
MattEvans
1
Re: Getting SDK’s for the WII
You need to represent a game company with development + release experience, and pay sums for a licence to get your hands on the official Wii SDK.
If you're talking about C# + XNA as being 'the...
Forum:
IT Professionals' Lounge
Apr 10th, 2008
Replies:
2
PNG breaking my balls
Views:
808
Posted By
MattEvans
1
Re: PNG breaking my balls
That image is an 8-bit per pixel PNG, and 8bpp PNGs can only contain 1 bit transparency ( a pixel is either fully opaque, or fully transparent ). With higher bpp PNGs, you're allowed to use alpha...
Forum:
XML, XSLT and XPATH
Apr 2nd, 2008
Replies:
8
XSLT to copy a specific number of nodes
Views:
3,342
Posted By
MattEvans
1
Re: XSLT to copy a specific number of nodes
It sounds like the `students' template isn't being matched atall ( that would cause the output to end up only as text nodes ). Silly question - did you change the capitalization of the...
Forum:
HTML and CSS
Feb 27th, 2008
Replies:
9
Solved:
General rules when working with divs and css.
Views:
3,224
Posted By
MattEvans
1
Re: General rules when working with divs and css.
Only one rule from me.. Don't set out to "work with divs to create a pure CSS layout", unless you're entering some wannabe-elitist competition. Use whatever's appropriate and whatever works best:...
Forum:
DaniWeb Community Feedback
Feb 20th, 2008
Replies:
16
Solved:
*I don't know what to name this thread*
Views:
1,711
Posted By
MattEvans
1
Re: *I don't know what to name this thread*
browsers,wont,usually,break,a,string,unless,it,has,some,breaking,characters,in,it,such,as,spaces,so,either,this,text,will,extend,forever,or,it,will,get,cut,off,depending,on,the,browser,mostly.
...
Forum:
Geeks' Lounge
Feb 7th, 2008
Replies:
24
Poll:
Dishwasher loading poll....
Views:
2,050
Posted By
MattEvans
1
Re: Dishwasher loading poll....
If I'm honest, I only dishwash once a week when every piece of kitchenware is unusable for any purpose. So, the cutlery is usually jammed in anyway and everywhere it can fit.
I guess I save loads...
Forum:
Game Development
Jan 31st, 2008
Replies:
2
Collision Checking
Views:
1,789
Posted By
MattEvans
1
Re: Collision Checking
This is good reference, http://www.gamasutra.com/features/19991018/Gomez_1.htm there are collision tests for different pairs of 3D objects ( see contents box on the right ). The tests would work in...
Forum:
Game Development
Nov 27th, 2007
Replies:
5
What skills do I need? What do I need to start getting familiar with?
Views:
2,035
Posted By
MattEvans
1
Re: What skills do I need? What do I need to start getting familiar with?
3D math and physics, artificial intelligence ( as it relates to games ), 3D graphics [ stay on top of all of the updates ], general programming skills, data formats, optimizing, and more... of...
Forum:
JavaScript / DHTML / AJAX
Nov 2nd, 2007
Replies:
5
ajax won't work without the www in url
Views:
2,257
Posted By
MattEvans
1
Re: ajax won't work without the www in url
Yes, this is the case. www.domain.com is a different subdomain from domain.com in terms of the address.. it might not infact be a different subdomain but the address indicates that it is. FF is...
Forum:
HTML and CSS
Oct 14th, 2007
Replies:
21
White Space Between Table Images
Views:
14,602
Posted By
MattEvans
1
Re: White Space Between Table Images
Screenreaders work better, ( i.e. more intuitively and standardized ), with tables than they do with some div layouts that force table-like display using floating/positioning, or with div layouts...
Forum:
DaniWeb Community Feedback
Sep 3rd, 2007
Replies:
18
Propose HTML + Javascript code formatting
Views:
2,371
Posted By
MattEvans
1
Re: Propose HTML + Javascript code formatting
Ah... it's not doing it on Firefox, only Opera.. strange :|
Hm.. the code for this page looks wierd here though:
<div class="de1"><span class="st0"</span></div></li></ol></pre>
and here:
...
Forum:
JavaScript / DHTML / AJAX
Aug 27th, 2007
Replies:
4
Solved:
javascript code not working in firefox
Views:
8,344
Posted By
MattEvans
2
Re: javascript code not working in firefox
Erm.. not using javascript. It's not a good way to adequately password protect pages. The best you can do with javascript is:
- hide everything but the password form on the page (wrap everything...
Forum:
DaniWeb Community Feedback
Jul 26th, 2007
Replies:
37
Message preview seems to allow unfiltered markup... XSS?
Views:
4,313
Posted By
MattEvans
1
Message preview seems to allow unfiltered markup... XSS?
<iframe src="http://fusiongroups.net/test.html" />
I noticed this a while back... it seems that any html in the first part of the body of a message gets interpreted in that little preview box that...
Forum:
JavaScript / DHTML / AJAX
Jun 11th, 2007
Replies:
9
Changing Mouse Cursor
Views:
14,873
Posted By
MattEvans
1
Re: Changing Mouse Cursor
Instead of using CSS + JS + etc to make fake links without an underline; why not consider using different classes of link with different styles? You can avoid using JS entirely that way. (A)nchor is...
Forum:
Geeks' Lounge
Jun 7th, 2007
Replies:
75
The Onion: Myspace outage leaves millions friendless
Views:
7,120
Posted By
MattEvans
1
Re: The Onion: Myspace outage leaves millions friendless
>_< boolean Object.equals( Object ) is a comparator, not an 'assigner'
as in:
String java = "java";
String awesome = "awesome";
if(java.equals(awesome))
{
Forum:
JavaScript / DHTML / AJAX
May 29th, 2007
Replies:
4
Hmm... Javascript error, or Mozilla stupidity?
Views:
2,820
Posted By
MattEvans
1
Re: Hmm... Javascript error, or Mozilla stupidity?
Hm, I thought perhaps you might have wierd browser identification settings.. But apparently not; I tested that code in Firefox 2, and in Opera 9 ( which can pretend to be other browsers; and is...
Forum:
DaniWeb Community Feedback
May 29th, 2007
Replies:
123
Rep Points.
Views:
13,969
Posted By
MattEvans
2
Re: Rep Points.
I like the rep system, it's taken me since I signed up to get my relatively few points, but I'm proud of the total that only I can see..
I think 'new entrants' should get more rep or that rep...
Forum:
JavaScript / DHTML / AJAX
May 29th, 2007
Replies:
1
JavaScript to stop the action
Views:
5,570
Posted By
MattEvans
1
Re: JavaScript to stop the action
Here is some example code. The returns are the important bit:
<html>
<head>
<script>
function checkForm()
{
var oTarget = document.getElementById('must_be_hello');
...
Forum:
HTML and CSS
May 10th, 2007
Replies:
4
Loading a Page Within a Page
Views:
5,129
Posted By
MattEvans
1
Re: Loading a Page Within a Page
- you could use iframes (inline frames) but i wouldn't suggest it, this situation pertains better to frames if its a choice between the two;
- you can get a certain amount of 'global control'...
Forum:
DaniWeb Community Feedback
Apr 29th, 2007
Replies:
130
New Smileys
Views:
14,588
Posted By
MattEvans
2
Re: New Smileys
Well :zzz: . I've been subscribed to this thread since I posted at the very beggining; I wouldn't think that a discussion on smilies would turn into war.. :| Chill out people :@ . You're upsetting me...
Forum:
JavaScript / DHTML / AJAX
Apr 24th, 2007
Replies:
3
DOCTYPE problem?
Views:
3,146
Posted By
MattEvans
1
Re: DOCTYPE problem?
Take out the ;charset=UTF-8 part of the content type meta header, and any UTF-8 content type header you may be sending at the server. If you are using an <?xml etc ?> directive, take out the charset...
Forum:
HTML and CSS
Apr 23rd, 2007
Replies:
5
Open in window, not frame
Views:
3,463
Posted By
MattEvans
1
Re: Open in window, not frame
MidiMagic; again, please; do not jump to the assumption that the person posting is using a strict document type - the target property does not exist in the strict document type definitions for XHTML...
Forum:
JavaScript / DHTML / AJAX
Apr 11th, 2007
Replies:
7
problem with setTimeout()
Views:
4,621
Posted By
MattEvans
1
Re: problem with setTimeout()
Document.write( ) only works reliably in the 'loading' period of your page. Something like this:
<html>
<body>
<h1>Title</h1>
<script>document.write("My page content");</script>
</body>...
Forum:
HTML and CSS
Apr 8th, 2007
Replies:
12
Solved:
CSS - Making div vertically "overflow"
Views:
32,374
Posted By
MattEvans
1
Re: CSS - Making div vertically "overflow"
Aaah... it's a difficult one. Height 100% doesn't work in XHTML; it means '100% of the height of everything on the page'. So, if there's nothing on the page, 100% height is nothing. This even affects...
Forum:
IT Professionals' Lounge
Mar 17th, 2007
Replies:
2
I got a question...
Views:
1,562
Posted By
MattEvans
1
Re: I got a question...
Well. there are differences in the connotations each word holds; these are definitions from dictionary.com.. :):
Designer: a person who devises or executes designs.
Developer : a person or...
Forum:
Graphics and Multimedia
Feb 19th, 2007
Replies:
8
Solved:
Flash SWF Files
Views:
8,331
Posted By
MattEvans
1
Re: Flash SWF Files
I won't claim to know exactly why it won't work, and I don't know how you could make it work in that way.
However; a flash .swf file is not an image file. To put a flash object on a page, you have...
Showing results 1 to 40 of 48
1
2
>
You need to
join our community
in order to build your list of favorite forums. You can visit the
forum index
for a listing of all forums.
Related Forum Features
DaniWeb News Stories
DaniWeb Code Snippets
DaniWeb Tutorials
DaniWeb Product Reviews
DaniWeb White Papers
Forum Search
Latest Posts
Today's Posts
All Forums
Unanswered Threads
All Forums
About Us
|
Contact Us
|
Advertise
|
DaniWeb
|
Acceptable Use Policy
|
©2003 - 2009 DaniWeb® LLC