Loader ready!


(jandro) #1

I finished the first version of the loader for the raytracer!

check my web, and look at the first “loaded” image.

http://www.coala.uniovi.es/~jandro/noname/

Well, is just a plane with a texture, but is the first scene I load. It’s time to discuss the format. I’ll fix and add whatever I have time to. Someone wants to write an exporter?


(Sutabi-old) #2

truely amazing I really really want to make my own raytracer but lack both math and programming skills, just going to algebra 2 (already cmplete geometry). But well you stuff is for linux…what about windows?


(VelikM) #3

I guess I’ll have to wait to compile it, when I run ./configure I get this error message:
[localhost:~/Desktop/yafray-0.0.1-4] michaelv% ./configure
loading cache ./config.cache
checking for a BSD compatible install… /usr/bin/install -c
checking whether build environment is sane… configure: error: newly created file is older than distributed files!
Check your system clock

It seem that you’re in a time zone several hours ahead of me and configure doesn’t like it when the new file is older than the old file :frowning: I’m still working on the parser error in surface.h when I compile on OS X).


(jandro) #4

Oh, thats easy to fix, just do the following:

cp yafray-0.0.1-4 temp -R
rm -rf yafray-0.0.1-4
mv temp yafray-0.0.1-4

and the timestamps will be right.

If you have more error messages that could give info about the problem, please post them. I’ll help you trying to figure out what’s wrong.

By the way, what’s the name of the compiler?


(VelikM) #5

It’s:
gcc version 2.95.2 and I’m using gnumake.
on a Mac running OS X.

The first failure for make is: no file named ‘ostream.h’ , iostream.h is used instead.
In file included from light.h:26,
from arealight.h:26,
from arealight.cc:23:
vector3d.h:26: ostream.h: No such file or directory
In file included from object3d.h:25,
from scene.h:26,
from light.h:27,

             from arealight.h:26,
             from arealight.cc:23:

matrix4.h:24: ostream.h: No such file or directory
In file included from shader.h:28,
from object3d.h:28,
from scene.h:26,
from light.h:27,
from arealight.h:26,
from arealight.cc:23:
color.h:24: ostream.h: No such file or directory
*** Error code 1
second error:
buffer.cc:24: ostream.h: No such file or directory

third error:
filter.cc:25: ostream.h: No such file or directory
*** Error code 1

fourth error:
mesh.cc:24: ostream.h: No such file or directory
*** Error code 1
fifth error:
loader/gram_lex.cc:23: ostream.h: No such file or directory
*** Error code 1
sixth error:
loader/parser.h:33: ostream.h: No such file or directory
*** Error code 1
seventh error:
loader/mlex.cc:23: ostream.h: No such file or directory
*** Error code 1
and the eight error, this is the one I was working on from the last version:
In file included from object3d.h:27,
from mesh.h:25,
from loader/msin.h:468,
from loader/msin_general.cc:23:
surface.h:59: parse error before 0x00002000L' surface.h: In methodsurfacePoint_t::surfacePoint_t(object3d_t *, point3d_t &, vector3d_t &, vector3d_t &, float, float, double)’:
surface.h:36: non-lvalue in assignment
surface.h: In method class surfacePoint_t & surfacePoint_t::operator =(const surfacePoint_t &)': surface.h:40: parse error before0x00002000L’
surface.h: In method const class point3d_t & surfacePoint_t:: P() const': surface.h:44: conversion fromlong int’ to non-scalar type point3d_t' requested surface.h: In methodclass point3d_t & surfacePoint_t:: P()’:
surface.h:45: conversion from long int' to non-scalar typepoint3d_t’ requested
*** Error code 1

For OS X all instances of ostream.h need to be changed to iostream.h, what the problem is with surface.h is ???