I found this script that I couldn't resist trying to add onto. The original author is linked at the bottom. http://www.hardwoodfloorspdx.com/misc/javascript/canvas/test/cube/I need some help with possible ideas for backface culling. I just need a nudge. I could try my own special brand of stupid on this idea, or I can ask really smart people like you.Also...I know, the texturing needs a new algorithm. LOL it's awful. I'm going to use that method on a hidden canvas which will be a clipped portion of the texture. That's another can of worms. I could do a simple slicing of the image in another ca
I want to do back-face culling in my code. That is, I want to performthe calculation myself, but I can't figure out how the calculationgoes. Can anyone help?I can get the camera matrix (the modelview matrix times the projectionmatrix) and I guess that it has something to do with it.
I've been writing a game with presumably random boxes. I've implemented view frustrum culling, backface culling, and even display lists. It's still not fast enough for my tastes, and I was wondering if there was any way to tell whether a face will be behind another. Maybe I could check whether the entire screen has been rendered to? A point in the right direction would be great. (I'm using c++)
everybody, new to the board and hoping someone can help! lolSince i finished my computer games degree, i've been working on creating a simple 3d engine in Flash of all things. So far everything is going ok, it will render polygons, perform backface culling, has a cutoff point for rendering (to prevent showing objects behind the camera) and has basic first person camera controls.At current, the camera's movement is faked somewhat. When the user "moves" the coordinates of each vertices are updated with the amount of movement in each direction.The camera so far will move forwards backwa
I have been scouring the web for similar situations and all solutions have proven futile. My problem is that upon redrawing (rotations, zooming in/out), certain faces of my cube flicker. 1) I do have double buffering on2) i have set the wm_erasebkgnd case to return 0;3) this code worked fine in other applications, however I am now using MDI. Also the geometries I am using are stored in allocated memory associated with each child window instead of a just a global like i used to have it, although I do not believe this is the problem as rendering a triangle using vertices within my draw scene als
lately I've been having a lot of issues with -transform and -backface-visibility.I am developing for the iPhone right now so obviously everything is done for it's webkit browser.The Problem is that in some cases single Objects inside a DIV container are not affected by the -backface-visibility:hidden property. That means they are visible even though the container is rotated and while others are invisible.My observation is that this has got to do with the -transform property or more precisely the translate3d property.Since I am developing this web app only for iOS devices I heavily rely on tran
I am currently using the method described in the following article to obtain Frustum planes:http://www2.ravensoft.com/users/ggribb/plane%20extraction.pdf I use this for culling against a perspective matrix. However, it is sometimes necessary for me to cull against an Orthographic matrix as well.Can I use the same technique to generate my frustum planes?Eggman
I have a client who insists on designing his pages himself using Front Page. What sort of problems can I anticipate mating PHP and Front Page manufactured pages, specifically forms data?PAS
Im going to calculate a ratio between two entities but are having some trouble with the query.The principal is the same to, say a forum, where you say:A user gets points for every new thread. Then, calculate the ratio of points for the number of threads.Example:User A has 300 points. User A has started 6 thread. The point ratio is: 50:6My schemas look as following:student(studentid, name, class, major)course(courseid, coursename, department)courseoffering(courseid, semester, year, instructor)faculty(name, office, salary)gradereport(studentid, courseid, semester, year, grade)The relations is
HelloI need help with this code. I am beginner.My platform PHP, MySQL. I am not very familiar with Javascript.I need to calculate value of each Checkbox List (Price) plus value from one TextBox (PrixBase)I have found this JQuery which works great in my case, but it make append two numbers instead calcul addition<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> <script language="JavaScript" type="text/javascript"> <!--//--><![CDATA[//> <!-- $(document).ready( function() { $(".chkOptions").click( functi
Est-ce que quelqu'un peut me dire comment résoudre ce problème qui me semble être un conflit entre des fonctions. - Si je place jquery après les scripts lightwindow alors markitup fonctionne mais les popup lightwindow ne fonctionnent pas - Si je place jquery en première ligne avant les scripts lightwindow alors les popup lightwindow fonctionnent mais markitup ne fonctionne plus.Je ne suis pas très fort en programmation... j'ai bien essayé différentes choses en regardant les infos données sur le site mais je n'arrive pas à trouver la solution qui doit certainement être assez si
BonjourI try to speak english... So, i have a web page like this. It calculate time for a database. Here it is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript">//<![CDATA[function reportdebutst() {debutsth = document.formulaire.champ56.value;debutstm = document.formulaire.champ57.value;document.formulaire.debut.value = debutsth +":"+ debutstm;}function reportfinst() {f
this is my first atempt in writing javascript and i have a problem which I have no idea how to solve.I want to take the values from several dropdown forms and make some calculations whit those in order to display a number. Unfortunately the script responts in a way that i cannot identify what is happening. this is a shorten example of my script.<html><head><script type="text/javascript">function calcul(){var pcno = document.plithospc.listplpc.value;var ndno = document.plithosnd.listplnd.value;var hotline = document.hotlform.listhotl.value;var sumhotline = 0;if (hotl
I got hammered by a bad spy-adware virus. Two browser hijackers and two other things, it was ugly. I swore a LOT, in two languages. After downloading helpful programs to get rid of it all, 4 days deleting files, having it all pop up again and again, hand culling the registry, getting advice from a very samrt friend who then went on vacation, swearing more and whatnot, I finally got rid of the damn things. First time in 10 years I got hit with a thing, I'm really careful. What's left of this mess is: when I boot the comp up the icons appear on the desk top, Weatherbug will pull up like it's sup
This is my very first javascript (I have limited knowledge C++ and php). I am trying to make an instant quote calculator, but having some trouble. I want to display the result of the calculation in the textbox with id price.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>OVP Custom Order</title><script language=
Hi, I wanted to now the method for how to write a value in on a same page without losing all the rest of the page. IN the cas of my script it should bee in the "r" box.{code}<html><head><title>Calcul de force électrique </title><SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction Calculator(){var a=document.calculator.a.value;var b=document.calculator.b.value;var aq=b*b;document.write(aq) ON THE SAME PAGE IN "R" BOX??}// End --></SCRIPT></head><body><div id="main"><form name=calculator><br
I am not a Java programmer not C++ programmer. I was a Pascal programmer...I belive that C++ it is a language for supermen!Well, I would like to lear JSP at least!Thus could you please provide me a script (for calcul or for open a, access database or more simple? ) I would like try it under my website to see as works.
IntroductionOver the years, I've seen people post gaming questions again and again on online forums. Essentially, they go something like this:"I am programming a game called [Insert Name]. It is a lot like [Insert Popular Game Title] but will be better. Can someone tell me where to start?"Now, I'm not posting this to be malicious. A quote that's very dear to my heart goes something like this:"Hi everybody! I am making a game called Dragon Wing. It's a Final Fantasy 7 - like RPG, but will be in full 3D and for the PC. I'm looking for developers to help me with the process and are
Thank you for your attention. The aim is to calculate a total price I have a table with id_prod PURCHASE product = ty_doc = document type nu_doc = document number nucdli = code of document linked px_com = price of the order We have : Code: CREATE TABLE tbl_ligneachat (id_prod char(1), ty_doc char(3), nu_doc int , nucdli int NULL, px_com int NULL) INSERT INTO tbl_ligneachat VALUES ('A','BE',13604,NULL,4) INSERT INTO tbl_ligneachat VALUES ('B','BE',13604,4) INSERT INTO tbl_ligneachat VALUES ('C','CDA',13604,NULL,3) INSERT INTO tbl_ligneachat VALUES ('D','CDA',13604,NULL,3) INSERT INTO tbl_lignea
I'm trying to update a table column with a pl/pgsql function and a trigger. But I didn't managed to make it work so far.Here's my short function code :CREATE FUNCTION public.calcul_impact() RETURNS opaque AS 'DECLARE id_line integer;quantity integer;single_price real; total_cost real; amort integer;month integer;impact real;BEGIN SELECT INTO id_line id_line_table FROM table WHERE id_line_table = NEW.id_line;SELECT INTO single_price single_price_previ FROM table WHERE id_line_table = NEW.id_line;SELECT INTO total_cost total_cost_previ FROM table WHERE id_line_table = NEW.id_line;SELECT INTO qua
Thank you for your attention. The aim is to calculate a total price I have a table with id_prod PURCHASE product = ty_doc = document type nu_doc = document number nucdli = code of document linkedpx_com = price of the order We have :CREATE TABLE tbl_ligneachat (id_prod char(1), ty_doc char(3), nu_doc int , nucdli int NULL, px_com int NULL) INSERT INTO tbl_ligneachat VALUES ('A','BE',13604,NULL,4) INSERT INTO tbl_ligneachat VALUES ('B','BE',13604,4) INSERT INTO tbl_ligneachat VALUES ('C','CDA',13604,NULL,3) INSERT INTO tbl_ligneachat VALUES ('D','CDA',13604,NULL,3) INSERT INTO tbl_ligneachat VAL
HiI try to speak english... So, i have a web page like this. It calculate time for a database. (the javascript is "old" and i would like to change it).Here it is :eek:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript">//<![CDATA[function reportdebutst() {debutsth = document.formulaire.champ56.value;debutstm = document.formulaire.champ57.value;document.formulaire.debut.va
I am following this wonderful Css 3D effect @http://www.eleqtriq.com/2010/11/natural-object-rotation-with-css3-3d/I am having trouble with passing ID's into functions here, specifically I am receiving an syntax error (below in Bold)______________Here is my code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Untitled Doc
HyeI'm back on how to optimize hash file, already I use dynamic hash file but I want to perform this pointSo I have a 8 millions records file that are grouped with common key a 3 char fields key (one of 2 char, one of 7 and one of 2 ) and a field of 12 char but not in the key, so the lenght is 23 and the key 11I want to optimize the hash file load by this file, the number of records loaded in this hash is about 7 millions, I have done this parameters for a static hash file :type 17 hashed file in regard of 3 fields key that are all charmodulus 700 to do group with about 11000 keysseparation 51
I have a JavaScript which is calculating some things based on exchange rate, In this script I use 2 values for EURO and USD which I get them from a form.calcul.html ... <SCRIPT LANGUAGE="JavaScript"> .... var eq_euro = document.frm_taxe.eq_euro.value; var eq_usd = document.frm_taxe.eq_usd.value; .... </script> .... <form name="frm_taxe" action="index.php?id=calculator" method="post"> ... <input type="hidden" name="eq_euro" value=111> <input type="hidden" name="eq_usd" value=222> ....
I was used to get variables from input using scripts like this one: <form method="post" action="<?php echo $PHP_SELF?>"> <?php include "include/get_root_atfs.inc"; $sql = "SELECT * FROM atproject WHERE atp_id=$atp_id"; $result = mysql_query($sql); $myrow = mysql_fetch_array($result); $atp_id = $myrow["atp_id"]; $atp_at_id = $myrow["atp_at_id"]; $codetargetadr = $myrow["atp_at_id"]; $atp_ref = $myrow["atp_ref"]; $atp_start = $myrow["atp_start"]; $atp_end = $myrow["atp_end"]; $atp_q
everyone, I am trying to make a timer in assembly.The user has to type the timer value (in seconds) and a beep occurs when the time is elapsed.I think i'm not far from the end but i got an error i can't seem to find :/ the program should work like this : I encode timer value in TIMERi get actual second from bios and keep it in BHIn a loop i get second from bios and compare it with the value in BH, when the values differ -> i increment a VARWhen var = TIMER i emit a beepheres where I amit seems i can't get out of the GETSEC loop, but i dont understand why isnt the JNE working right , i shoul
I want to write a program which can determine the fundamental frequency Fo by the Cepstrum method. I can write a program which can calcul the cepstre in VC, data is in a wave file. But I cannot determine the F0. All I need is a code determine the Fo from the cepstre.Can you show me a way or a source code to do that?
HiI am an architectural graduate student with nil experience designing and developing databases. I understand how they work on a schematic level though I am not up on the terminology. I have played only superficially with Access and Visio and I understand that Blog type websites have databases (controlled by PHP?) managing any posts...What I am looking to do s create a database that I can then feed some visualization program - think cytoscape, semaspace, tulip, prefuse etc etc - that would illustrate relationships between different entries in a network form...show how they are related, and hop
i'm learning Direct3D 9.i wrote an application (code attached), and those are the problems.1. lights, as you can see in the attachment, there is a problem with the light. i'm using D3DLIGHT_DIRECTIONAL type, and it is not enough to light all the terrain, so i added another light (light one toggled by '1' key and light 2 by '2' key).2. culling problem. when i rotating the camera around the terrain, (using Right and Left Keys, Up and Down key form zooming) the mountains sometimes look cut.i'm using IndexBuffer for rendering the terrain. (as written in the http://www.andypike.com/tutorials/direct
Team name:Electric Eye Productions. The Electric Eye Productions is a group of Open Source developers dedicated to produce commercial quality - but free - games for both Windows and Linux. The EEP was originally founded by a group of high school friends, but over the years has developed into the international group of Open Source developers that it is today.Project name:Galactic Vice.Brief description:Galactic Vice is a 3D, open source, Real-Time Strategy game featuring two races at war. Vital mistakes made by a corrupt human empire lead to a catastrophic war against an alien race -- one in wh
Paul and others,> as the existing forums provide a valuable resource they really must be moved over and not lost. > Anything else would be a retrograde step.Thanks for your comments in the welcome thread. I moved it to a new thread to keep this legacy forum discussion from clogging up a welcome note.The current plan on the legacy forum is as follows. What is there will remain there until Q4 2009, but the forums will no longer be accepting new input.The entire thread structure will NOT be migrated to developerWorks. Instead, several DOORS technical support people will cull through the old
Ok my friends...I volunteered to do some PHP coding for a small non-profit that needs a lot of help. The guy who built their existing website wouldn't let me have access for months - but then I finally got around him to see what he had built... it is a nightmare - and I need help figuring out what to do. Please read on...Basically, this organization has thousands of people writing reports and uploading them to the server. All of these reports are in HTML. There is no user database - though security is implemented via .htaccess. There is no database at all actually, which leads to my problem.Th
i have write a javascript code in dreamweaver mx 2004 :here is the screenshoot of my page :Summary for the picture is :input in : Body weight, actual albumin, target albumin, is a number : decimal and or absolute numberi need this tabel work if i fill in input of body weight, actual albumin, and target so automactictly in field of albumin correction shon the result.Original Formula = Amount of Correction = (D-A)X((BWX40)/100)X2 = ....gramsFor the form and component includes i have write the javascripts here, but when execute on web page that is not work !!SOMEBODY CAN HELP ME FIND MY ERROR COD
I try to create two sliders that allow me to choose the size of an image along its height and width.So a slider for the width and a slider for the height.To calculate the actual size in cm of an image, I import my image then I calculate its size depending on the width and height in pixels.For now, everything happens as it should.The problem is that my price varies depending on the width or height of my image. So I have a supplement which adds to my original price. My supplement is calculated with an ajax request.I have two problems:The first is that I use a stop with the slider function to not
I've made a DLL using MFC.When i run it in debug mode, i've got the following messages in the output window:Loaded 'D:\Giris\Bin\GirisEP.exe', no matching symbolic information found.Loaded 'C:\WINNT\System32\ntdll.dll', no matching symbolic information found.Loaded 'C:\WINNT\system32\Mfc42.dll', no matching symbolic information found.Loaded 'C:\WINNT\system32\Msvcrt.dll', no matching symbolic information found.Loaded 'C:\WINNT\system32\KERNEL32.DLL', no matching symbolic information found.Loaded 'C:\WINNT\system32\GDI32.DLL', no matching symbolic information found.Loaded 'C:\WINNT\system32\USE
i search a function who calcul an equation in a string.. and who return the result! If possible an API or a function in a .dll, cause i need to use this function in other language that C++...here is an example :FunctionX("2 * 2 + 3") //return 7
when i execute my program in the debug mode, i can watch some messages in the debug window. Here they are:Loaded 'D:\Giris\Bin\GirisEP.exe', no matching symbolic information found.Loaded 'C:\WINNT\System32\ntdll.dll', no matching symbolic information found.Loaded symbols for 'C:\WINNT\system32\MFC42.DLL'Loaded symbols for 'C:\WINNT\system32\MSVCRT.DLL'Loaded 'C:\WINNT\system32\KERNEL32.DLL', no matching symbolic information found.Loaded 'C:\WINNT\system32\GDI32.DLL', no matching symbolic information found.Loaded 'C:\WINNT\system32\USER32.DLL', no matching symbolic information found.Loaded 'C:\
I'm trying to write a function having as argument as SQL query(or a part of it). This SQL query should generate a cusror within the function. All the way would have the generated cusror always the same structure.CREATE OR REPLACE FUNCTION Calcul_avg(Name_Table VARCHAR) RETURN NUMBERISTYPE Funct_Cursor_Type IS REF CURSOR RETURN Defined_Table%ROWTYPE;Funct_Cursor Funct_Cursor_Type;OPEN Funct_Cursor FOR SELECT ID, NAME FROM Name_Table ;......Return Calcul_avg;With this function, I'm getting the error:PLS-00455: cursor 'FUNCT_CURSOR' cannot be used in dynamic SQL OPEN statement
I want to access a member function of a view class from a custom class.I have declare my view class a friend class of the custom class:friend class CTestView;In my custom class, I have a member function in wich I want to access a member function of my view class:void Calcul_Int (CTestView pView){int nombre;nombre = pView->GetInt();}In my view class, I have:CMyClass result;CTestView* pView;pView = this;result.Calcul_Int(pView);I can compile this code. I get the error message:error C2664: 'Calcul_Int' : cannot convert parameter 1 from 'class CTestView *' to 'class CTestView'.Can anyone gi
I have a large array of 2d points, in order to accelerate all sorts of spatial querys I have assigned each point to a particular cell in a 2d grid. when I want to find for e.g. all points within a certain box I can perfrom simple floor/ceil math to find all intersecting cells, this then culls away all far away points (depending on the resolution of the grid).My question is:I want to perform different operations on these points, whats a good way to do this?I could either simply return an array of all nearest points i.e.void Grid::getPoints(std::vector<Point>& out, Box box){// cull all
Good afternoon:I have been considering the idea of an automated browser that would go to a defined website, culling text and returning it to a home workstation, saving it to a file; now, this should be a simple program written in C++, and it would not be used as a stand-alone app, but a module of a much-greater project. In theory, I feel this would be possible, save for maybe complications with the chosen language (C++) but I have not been able to track down or implement anything even close to this app or coding. Does anyone have any ideas, concerns, or directions for something like this, or f
I have a query and to optimize this the develloper add ||'' at the end.I d'ont understand why the optimisation is so good.Original query SELECT DISTINCT nulig,dtcalcFROM ligne l,calcul c,mouvement mWHERE m.cdentjur = c.cdentjurAND m.cdeme = c.cdemeAND c.cdstt = 'A'AND m.cdpor = l.cdporAND m.cdval = l.cdvalAND m.cdstt = 'A'37606 ligne(s) sélectionnée(s).Ecoulé : 05 :23 :17.65Optim query SELECT DISTINCT nulig,dtcalcFROM ligne l,calcul c,mouvement mWHERE m.cdentjur = c.cdentjur || ''AND m.cdeme = c.cdemeAND c.cdstt = 'A'AND m.cdpor = l.cdpor || ''AND m.cdval = l.cdval || ''AND m.cdstt || '' =
So yesterday i went on a massive package culling spree, and then had the good sense to restart my computer.But i think i killed GDM, or one of it's dependencies. Initially it couldnt start GDM, but after 'sudo apt-get purge gdm' and then apt-get install gdm, /etc/init.d/gdm status returns * gdm is running.However, my desktop is still missing quite a few things, namely the task bar down the bottom and the task bar at the top. I've also lost support for alt-f2 and things like that.Does anyone know what i might have done? I understand that the description above was fairly useless, but i can provi
So, after deciding i needed a few speed boosts and could do with culling a bit of unnecessary **** inside the kernel, i headed on over to kernel.org and got the latest kernel. After a bit of tweaking and ****, i got to the point where i went --append-to-version=BenstweakThat was a big mistake.Now make-kpkg is stuck; i cant make-kpkg clean, i cant build versions with non-capitalised names, etc. etc.I manually rm -rf'd the directory i had unzipped and tweaked from (which had been moved to /usr/src) and deleted the link, however make-kpkg still compains like an absolute prick whenever i try to do
I am actually working on a simulation to draw little cube.I would like to fix the frame rate of the display.I've got the idea of creating a timer which will call glswapbuffer every xx time but it seems not to work.Here is the code :#include "main.h"//----------------------------------------------------------------------// openWindow() - Open a window to render.//----------------------------------------------------------------------int openWindow(void){int ok = 0;ok = glfwOpenWindow(640, 480, // Width and height of window8, 8, 8, // Number of red, green, and blue bits for color buffer
I'm using cubic bezier curves. I having a some trouble. Instead of using lines to draw the curves, I want to use cubes. I've managed to changed it but when I draw 1 curve, it shows many cubes spaced out.How can I get the cubes to stay together to make them the way I want using the points I've chosen?If you run the code as it is, you will see what is wrong./* Draw x , y and z axis */#include <stdlib.h>#include <glut.h> //OpenGL libraryGLfloat Ax,Bx,Cx,Dx,Ay,By,Cy,Dy,Az,Bz,Cz,Dz,x1,k,l,x2,y2,z2,t,p,constx1,consty1,constz1;int i;/* define a draw routine to draw the x,y and z axis */vo
Hi, I'm having trouble getting DirectX to render transparency with my program. I've basically taken the Textures tutorial from DirectX and messed around with it a bit. I set it up so that the camera is staring at the center of a board made up of squares of the a background tile drawn repeatedly. What I want to do is place a sprite image in front of it and have the white space be transparent (so that the board is visible behind the sprite).I've been able to get the file to load and set white to its transparency colour code, but for some reason, when I go to render it, the program displays the b
I am working with Managed DirectX in C#. I have 4 panels set up which are each being drawn to.I have the following code to draw to these panels:-------------------------------------------------m_aDevices[i].Transform.Projection = Matrix.PerspectiveFovLH((float)Math.PI / 4, m_aDevices[i].Viewport.Width / m_aDevices[i].Viewport.Height, 1f, 50f);m_aDevices[i].Transform.View = Matrix.LookAtLH(new Vector3(0, 0, -30), new Vector3(0, 0, 0), new Vector3(0, 1, 0));m_aDevices[i].RenderState.Lighting = false;m_aDevices[i].RenderState.CullMode = Cull.None;CustomVertex.PositionColored[] vertices = new Cust
i'm trying determine the visible surfaces of a cube. i want to follow the back face culling method (by surface normals and view vectors). is it necessary to order the points of a surface in clockwise or counterclockwise to determine which way the normal is facing from the view vector?? what should do then if i want to rotate the cube? ordering the points each time doesn't seem a good solution to me. is there anyother method other than ordering the points and still able to determine the normal correctly?it's really confusing and i need help in this.magneeto