User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 334,830 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,060 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our advertiser:
Showing results 1 to 40 of 500
Search took 0.07 seconds.
Posts Made By: MattEvans
Forum: Game Development 3 Days Ago
Replies: 3
Views: 235
Posted By MattEvans
Re: windows graphics... history?

OpenGL no more 'wraps WinAPI functions' than any other program or library that happens to run on Windows. OpenGL is platform agnostic, the need for Windows API with OpenGL apps is to get access to...
Forum: Game Development 3 Days Ago
Replies: 2
Views: 163
Posted By MattEvans
Re: anyone got a bot maker for games?

Psh.. it's not so serious.. a bot isn't necessarily bad. IMNSHO, there's no such thing as 'cheating' in a computer game.. It's like 'cheating' in reading a book by looking at the last page first. It...
Forum: Game Development 3 Days Ago
Replies: 13
Views: 450
Posted By MattEvans
Re: Breakout Ball bouncing physics

Based on a quick test in something I've got running ATM, that last bit of code I posted:

velocity2 = ( 2 * surface_normal * surface_normal.dot( velocity1 ) ) - velocity1;

Should probably...
Forum: Game Development 3 Days Ago
Replies: 13
Views: 450
Posted By MattEvans
Re: Breakout Ball bouncing physics

Hi, sorry I didn't reply sooner, been abit busy.

With movement and collision, you have a couple of pitfalls. One is that the speed/velocity of a moving object can exceed the width of objects being...
Forum: Game Development 8 Days Ago
Replies: 13
Views: 450
Posted By MattEvans
Re: Breakout Ball bouncing physics

Where and what are the issues? Do they occur at the 'corners and sides' of the paddle, or at the flat, upwards pointing, part? What exactly doesn't seem right when you test?
Forum: Game Development 13 Days Ago
Replies: 13
Views: 450
Posted By MattEvans
Re: Breakout Ball bouncing physics

Yes, the second interpretation is correct.

> Velocity is change in position w/ respect to time ( a vector )
> Acceleration is change in velocity w/ respect to time ( a vector )
> Speed is distance...
Forum: Game Development 13 Days Ago
Replies: 13
Views: 450
Posted By MattEvans
Re: Breakout Ball bouncing physics

The magnitude/speed of a velocity is just the length of the vector; in components:

speed = sqrt( ( velocity[x] * velocity[x] ) + ( velocity[y] * velocity[y] ) );
( good ol' pythagorus...
Forum: Game Development 14 Days Ago
Replies: 13
Views: 450
Posted By MattEvans
Re: Breakout Ball bouncing physics

The position of the paddle when the ball hits it is wholely irrelevant - the paddle is the same all over, flat, and moves in a constrained direction ( in its own plane ), so any moving point on the...
Forum: Game Development 21 Days Ago
Replies: 3
Views: 291
Posted By MattEvans
Re: Posted in the wrong thread (Sorry!) - Game Artificial Intelligence help

Stick with 'standard' goal-oriented action planning techniques; the method you're starting to write ( based on your other thread ) won't scale well to finding a general solution to a general...
Forum: Game Development 22 Days Ago
Replies: 2
Views: 216
Posted By MattEvans
Re: Using DirectSound w/o DXUT.h

Probably not what you want to hear, but the multiplatform SDL library ( simple directmedia layer ) has routines for loading in Wav files. I'm not sure how it holds the data internally, since SDL has...
Forum: JavaScript / DHTML / AJAX 23 Days Ago
Replies: 24
Views: 1,802
Posted By MattEvans
Re: Firefox Compatibility help with script

Well.. alot of the questions you've asked in this thread have quite complex answers, but those answers are very easy to find/work out yourself.

Can you serve two pages to two different browsers?...
Forum: Game Development 24 Days Ago
Replies: 34
Views: 1,524
Posted By MattEvans
Re: I am wanting to be a gamecoder any Advice.

Looking at myself, a person who 'enjoys game programming'; I don't have an issue with 20+ hour days, intensive work, stress and/or overwork. I enjoy being constantly occupied with something, and am...
Forum: Game Development 25 Days Ago
Replies: 13
Views: 584
Posted By MattEvans
Re: Maya 4 Download?

You can also transfer the licence with some software ( even Windows XP, provided you transfer the entire package that Windows was purchased with; cd, keys, packaging, manuals, the PC itself if it's...
Forum: Game Development 26 Days Ago
Replies: 13
Views: 584
Posted By MattEvans
Re: Maya 4 Download?

I'm not suprised that you're finding it hard to get hold of Maya 4.0, it's pretty ancient. What kind of plugin is the one you need? Is it one of those Maya pseudo-dlls or a MEL script? If it's a MEL...
Forum: Game Development 26 Days Ago
Replies: 2
Views: 284
Posted By MattEvans
Re: Moving a counter with a playing board

That's a horrible way to influence the page dynamically. Don't 'print' HTML into an already-opened page in that way, i.e. never use document.write( ) unless its only to influence the first page...
Forum: JavaScript / DHTML / AJAX 34 Days Ago
Replies: 10
Views: 1,047
Posted By MattEvans
Re: How to apply No right click script inhere...?

You can't stop the right click action in a plain XML file. On some browsers, you can prevent the right click action in an HTML file, because an HTML file is allowed to run javascript, which is...
Forum: JavaScript / DHTML / AJAX Apr 15th, 2008
Replies: 24
Views: 1,802
Posted By MattEvans
Re: Firefox Compatibility help with script

The first meta tag in that page is in the wrong place... move it to be inside the head section. Try validating the code aswel, correct any errors and see if it still has a problem.
Forum: JavaScript / DHTML / AJAX Apr 14th, 2008
Replies: 6
Views: 436
Posted By MattEvans
Re: Any pointer on how the developer made this

Yeah, it's just faking it. The little yellow alert region is simply a CSS styled div element. It works on all browsers, and looks quite out-of-place in Opera :D.
Forum: HTML and CSS Apr 14th, 2008
Replies: 11
Views: 410
Posted By MattEvans
Re: Diagonal rules in CSS?

Designers need to know that the stuff they throw at the programmers is feasible. That means they need to be able to make more than just pretty head-in-the-sky designs, but workable designs. It's the...
Forum: HTML and CSS Apr 14th, 2008
Replies: 3
Views: 274
Posted By MattEvans
Re: struggling with css

Have you tried setting height:100% to the body and html element? CSS:

html,body{
height:100%;
}

This should allow you to make content stretch when it's "too short" to fill the page ( anything...
Forum: HTML and CSS Apr 14th, 2008
Replies: 7
Views: 435
Posted By MattEvans
Re: Style for just numbers in ol lists

It's not a kludge to have an outer style affect the list ( including the bullets/numbers ) and have an inner style affect the content of items themselves. Use 'relative' styles if possible , e.g use...
Forum: Web Developers' Lounge Apr 10th, 2008
Replies: 2
Views: 312
Posted By MattEvans
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: JavaScript / DHTML / AJAX Apr 10th, 2008
Replies: 6
Views: 666
Posted By MattEvans
Re: script/function to lock a mouse and keyboard.

If the mouse is locked, how do you click again to unlock it?

What do you mean exactly by 'locked'? I took that to mean disabled/no longer functional.
Forum: Java Apr 9th, 2008
Replies: 14
Views: 466
Posted By MattEvans
Re: Anyone can help me solve tis problem??

This is Java code not Javascript code; the languages are entirely different.

The thread has been moved to the Java forum.

On another note, you're more likely to get help with the problem if you...
Forum: JavaScript / DHTML / AJAX Apr 9th, 2008
Replies: 6
Views: 666
Posted By MattEvans
Re: script/function to lock a mouse and keyboard.

No. No sane browser / OS setup will let a webpage 'lock the keyboard or mouse'. Think for 30 seconds why this is the case.

If you want to disable all interaction with your site when the user clicks...
Forum: XML, XSLT and XPATH Apr 2nd, 2008
Replies: 8
Views: 608
Posted By MattEvans
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: XML, XSLT and XPATH Apr 2nd, 2008
Replies: 8
Views: 608
Posted By MattEvans
Re: XSLT to copy a specific number of nodes

Which processor are you using? If your processor doesn't support position( ).. that's strange; because it's been around a long time. Anyway, try this replacement for the 2nd template:

...
Forum: XML, XSLT and XPATH Apr 2nd, 2008
Replies: 8
Views: 608
Posted By MattEvans
Re: XSLT to copy a specific number of nodes

There's a couple of ways to do this; probably the most imperative is:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template...
Forum: Web Developers' Lounge Mar 25th, 2008
Replies: 11
Views: 610
Posted By MattEvans
Re: Which web browsers should you support?

Your present user figures speak for themselves. You certainly need to keep supporting IE6 until it's in negligable use.

The best way to solve the problem is to---from the beginning---only use...
Forum: Software Developers' Lounge Mar 16th, 2008
Replies: 8
Views: 510
Posted By MattEvans
Re: Controlling software piracy?

Thread moved to Software Developers Lounge, since this question was multiply-posted and thus probably doesn't relate specifically to Web Development.
Forum: HTML and CSS Mar 14th, 2008
Replies: 9
Views: 669
Posted By MattEvans
Re: General rules when working with divs and css.

>> I don't think it's any harder to create a fluid CSS design than a tabular CSS design.

It's hard, but not impossible, to create a tabular design without tables, and it's hard, but not impossible,...
Forum: Software Developers' Lounge Mar 14th, 2008
Replies: 8
Views: 510
Posted By MattEvans
Re: Controlling software piracy?

The only way to stop "piracy" is to release truly open, public domain, software; nobody can pirate something that's already theirs!

I guess that's not what you want to do, though. As Auzzie said,...
Forum: Game Development Mar 13th, 2008
Replies: 9
Views: 542
Posted By MattEvans
Re: glutMouseFunc and Segmentation Faults

Cool; good to know it's working :)

Disregard my last post; although, the -g3 flag is quite useful to remember ( with full debug info you can see all the values passed into methods aswell as the...
Forum: Game Development Mar 13th, 2008
Replies: 9
Views: 542
Posted By MattEvans
Re: glutMouseFunc and Segmentation Faults

Ok, the method NodeGL:plot is very small, the only thing that could be wrong in that method itself is the array not being instantiated ( or being too short ), however, there could be something wrong...
Forum: Game Development Mar 13th, 2008
Replies: 9
Views: 542
Posted By MattEvans
Re: glutMouseFunc and Segmentation Faults

>_< oops, sorry;


$ gdb ./hex3
(gdb) run
..wait for error..
(gdb) backtrace
Forum: Game Development Mar 13th, 2008
Replies: 9
Views: 542
Posted By MattEvans
Re: glutMouseFunc and Segmentation Faults

There is probably something wrong in your not-shown classes ColorGL &| BezierGL, since the code runs fine with all reference to those classes commented.

Have you got a debugger? I'm guessing if your...
Forum: HTML and CSS Mar 13th, 2008
Replies: 2
Views: 520
Posted By MattEvans
Re: Trying to run a C++ program through a web link

I'm not sure what configuration tricks you'll need to perform to get this to work on Windows + XAMPP, but, the following looks 'wrong':

- your href in the HTML goes to a local file, this certainly...
Forum: Websites for Sale Mar 7th, 2008
Replies: 4
Views: 369
Posted By MattEvans
Re: Sell my website ?

Adult links have been removed from this thread in compliance with Daniweb Rules (http://www.daniweb.com/forums/faq.php?faq=daniweb_policies).

If you are interested in the site, please send a private...
Forum: JavaScript / DHTML / AJAX Mar 1st, 2008
Replies: 4
Views: 885
Posted By MattEvans
Re: onclick toggle

Initially, the click handlers for all objects are assigned to the size change function. When you click an object for the first time, the size is changed, and the click handler for that object is...
Forum: Game Development Mar 1st, 2008
Replies: 20
Views: 2,819
Posted By MattEvans
Re: Web-based RPG game advice needed

Just about any language can be used, although some languages are more/less suitable for various reasons. C++ can be used for web applications quite comfortably, when coupled with a database and...
Showing results 1 to 40 of 500

 
All times are GMT -4. The time now is 3:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC