Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: problem wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 23 of 91 Topic 26113 of 26960
Post > Topic >>

Re: problem with output of the program on different OS

by pereges <Broli00@[EMAIL PROTECTED] > May 9, 2008 at 02:25 AM

On May 9, 2:08 pm, Ian Collins <ian-n...@[EMAIL PROTECTED]
> wrote:

> Yes, but they are uninitialised, so the values in res are garbage when
> used.  I see one of them is used as an index.

Yes, the values in res are garbage when its pointer is passed to the
find_closest_intersection function. But then, the values of the
members in res(t, u, v , tindex) are modified in that function after
intersect_triangle routine is called. The raytrace function is then
having the modified res.

......
if(intersect_triangle(r->origin, r->direction, obj->vert[obj-
>tri[i].v0], obj->vert[obj->tri[i].v1], obj->vert[obj->tri[i].v2],
&res->t, &res->u, &res->v) == TRUE)
.......

^^ The values in res are getting modified here. res->hit is modified
inside the if clause. The res->tindex is modified after the for loop
and it is assigned the value of the variable index.
 




 91 Posts in Topic:
problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-08 01:20:05 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-08 08:26:22 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-08 01:34:12 
Re: problem with output of the program on different OS
Ian Collins <ian-news@  2008-05-08 20:42:23 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-08 09:13:32 
Re: problem with output of the program on different OS
jacob navia <jacob@[EM  2008-05-08 11:59:09 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-08 01:49:39 
Re: problem with output of the program on different OS
Nick Keighley <nick_ke  2008-05-08 02:19:06 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-08 06:45:10 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-08 22:40:28 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-09 05:52:41 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-08 23:20:44 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-09 07:32:33 
Re: problem with output of the program on different OS
Ian Collins <ian-news@  2008-05-09 19:59:46 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-10 06:31:13 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-12 01:35:03 
Re: problem with output of the program on different OS
Spiros Bousbouras <spi  2008-05-09 00:28:46 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-09 07:51:07 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 01:22:57 
Re: problem with output of the program on different OS
Ian Collins <ian-news@  2008-05-09 21:08:08 
Re: problem with output of the program on different OS
Spiros Bousbouras <spi  2008-05-09 01:51:36 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 02:16:12 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 02:25:03 
Re: problem with output of the program on different OS
Ian Collins <ian-news@  2008-05-09 21:56:02 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 02:27:52 
Re: problem with output of the program on different OS
Antoninus Twink <nospa  2008-05-09 12:00:16 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 03:28:15 
Re: problem with output of the program on different OS
Ian Collins <ian-news@  2008-05-09 22:53:30 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 04:01:47 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 04:21:35 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-09 05:33:08 
Re: problem with output of the program on different OS
Richard<_rdev@[EMAIL P  2008-05-09 15:25:49 
Re: problem with output of the program on different OS
Chris Dollin <chris.do  2008-05-13 13:07:33 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-13 12:29:31 
Re: problem with output of the program on different OS
Chris Dollin <chris.do  2008-05-13 16:03:51 
Re: problem with output of the program on different OS
CBFalconer <cbfalconer  2008-05-13 10:02:24 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 06:33:21 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-09 06:46:50 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 07:11:31 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-09 15:25:42 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-09 07:57:58 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-09 08:45:35 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 09:42:59 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 10:18:52 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-09 10:26:53 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 11:28:47 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-09 12:09:57 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 12:14:55 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-09 12:43:25 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-09 12:58:32 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-10 04:22:35 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-10 12:24:42 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-10 09:26:16 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-10 17:39:35 
Re: problem with output of the program on different OS
Flash Gordon <spam@[EM  2008-05-10 23:31:36 
Re: problem with output of the program on different OS
Joe Wright <joewwright  2008-05-11 10:04:20 
Re: problem with output of the program on different OS
dj3vande@[EMAIL PROTECTED  2008-05-11 20:40:39 
Re: problem with output of the program on different OS
pete <pfiland@[EMAIL P  2008-05-11 19:50:38 
Re: problem with output of the program on different OS
Harald van =?UTF-8?b?RMSz  2008-05-11 16:58:12 
Re: problem with output of the program on different OS
Spiros Bousbouras <spi  2008-05-11 18:52:11 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-12 02:17:17 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-12 02:22:09 
Re: problem with output of the program on different OS
Richard Heathfield <rj  2008-05-12 10:54:15 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-12 05:42:52 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-12 06:29:10 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-12 08:06:49 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-12 10:27:24 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-12 18:44:43 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-12 14:03:00 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-13 01:39:16 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-12 18:27:34 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-13 04:46:03 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-12 21:13:42 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-12 22:34:37 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-13 04:13:26 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-13 13:12:32 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-13 13:15:11 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-13 05:23:49 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-13 13:58:08 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-13 06:13:24 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-13 15:23:07 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-13 15:33:58 
Re: problem with output of the program on different OS
CBFalconer <cbfalconer  2008-05-13 09:53:22 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-16 02:16:28 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-16 03:01:45 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-16 03:03:12 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-16 12:24:06 
Re: problem with output of the program on different OS
pereges <Broli00@[EMAI  2008-05-16 04:55:17 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-16 05:02:26 
Re: problem with output of the program on different OS
Ben Bacarisse <ben.use  2008-05-16 14:27:26 
Re: problem with output of the program on different OS
Bart <bc@[EMAIL PROTEC  2008-05-16 08:02:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 16:41:17 CDT 2008.