lighting with texture 3d

I’m going for my B.S. in CS. And I DO have to take foreign languages. I guess that requirement varies from state to state.

-SirKnight

Wow, Kronos e Bruno, mais dois portugueses!!!
Incrivel, pensei que fosse o único, uma vez que o 3d não está muinto desenvolvido por cá! Voces são de onde?

Sim, já agora: glDisplacementMaps(), assim dá a ideia que eu estava a participar na discução

Originally posted by SirKnight:
[b]I’m going for my B.S. in CS. And I DO have to take foreign languages. I guess that requirement varies from state to state.

-SirKnight[/b]

What does that have to do with CS? Any course outside of CS is or should be optional.

Well, let’s hope the OP’s question got answered somehow

V-man

I’m not sure if krol’s question was answered, since I can’t read most of it :-), but I’ll give it a try anyway.

Originally posted by krol:
[b]Hello everyone

I have the following problem: I’m drawing a simple cube. All lighting setings are appropriate (shading is corect) but when I enable texturing shade disappears!! Does anyone know what could by reason of it??

Marcin[/b]

Of the top of my head, there are two things that might be happening:

By default OpenGL will modulate (per-component multiply) the texture color with the color resulting from the illumination calculations. This is set using:

glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MODULATE);

If you forgot and changed it to something else, like:

glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_REPLACE);

you might not get the result you are after (in this case illumination is ignored altogether).

Another common problem with lighting and textures is: imagine that you have a colored light (say red) and a blue texture. when modulating red and blue you always get black (1,0,0)*(0,0,1)==(0,0,0).

Or you can have a simpler bug in your code, for instance enabling lighting but not enabling any light.

If you’re still having problems why don’t you post a small code snippet?


Hope it helps
Pedro

What does that have to do with CS? Any course outside of CS is or should be optional.

It has nothing to do with CS directly but like I say, to get a degree here in America a lot of other stuff that is not directly related to your field of study has to be taken. A lot of people in other countries (or even people here in America that dont understand) think that it’s somehow stupid or pointless to have to take courses that is outside of the field of study. But in actuality, it’s really a good idea (even though some of the courses will be boring or whatever) because these other courses teach you things that you will need to be able to know and do in the ‘real world.’ What also happens is that for us having to take all of these extra things, it makes the person with the degree more rounded. I remember quite a few years ago a teacher told us this and after a while I began to think about it more and more and it really makes sence. Now don’t be thinking that i’m saying that by NOT doing this and just learning the things that are directly related to your field of study only is bad idea; not at all. I’m just saying why this is done basically in America.

-SirKnight

[This message has been edited by SirKnight (edited 10-04-2002).]

Kronos…, não me lembro de ter trocado e-mails contigo, mas é possivel
Quanto ao Displacement mapping, acho que sim, que é uma boa ideia…
Sou de Cascais, e vocês ?

i would just like to disagree 100,000% with Knight’s position on being “well-rounded”. for example, as a CS major at a school in the US, i’ll have to take 3 humanities courses, 3 communications courses, 2 history courses, and 4 other “general education” electives, where general education means anything outside of CS, math, or the hard sciences (chem, physics, engineering, etc).

there is no justification for that nonsense. instead of that crap, i should be able to take extra math and CS courses, or start taking grad courses. or, for that matter, i should be able to just take all the CS and math courses i need, and graduate early.

the reason they pad the curriculum with so much garbage is a) to keep you there longer, and b) the liberal retards in the sociology/culture/communications departments telling school administrators that every student should have to take some of their crap courses. if they only required that i get done the CS and math requirements (the only stuff that is of any use at all), i’d be done in 3 years instead of 4, and the university would make less money.

honestly, how is knowing french (nothing against french here) or reading the communist manifesto going to improve your coding abilities?

V-Man: “What does that have to do with CS? Any course outside of CS is or should be optional.”

i couldn’t agree more.

Originally posted by SThomas:
[b]
V-Man: “What does that have to do with CS? Any course outside of CS is or should be optional.”

i couldn’t agree more.[/b]

I’m sorry, but SirKnight is right, IMHO. Getting a well-rounded education is what prepares you for life outside of computers. Though you don’t think so now, you might change career paths in the future. I graduated as a nuclear engineer a couple of years ago (go UIUC) but am currently a software engineer. It’ll expose you to topics you weren’t previously exposed to, possibly leading you on a different course, like it did for me. Eighteen years old is too young to be certain about your life. You have a fighting chance at twenty-two. Man, I already feel old…

Graduate school is the time when you can let your major become your life Anyway, taking all engineering classes seems like some sort of sadistic torture…

Sorry for being offtopic, but since the conversation went that way already…

I agree with the SThomas on most of his points. I may be wrong, but I am under the impression that most people go to university in order to get a better job. I seriously doubt that any employer will be more willing to hire you knowing that you have taken a course in Subteranean Biology.(unless the employer is a Subteranean Biologist )

Why does a cs guy need to know about New York during the the victorian era(I HATE EDITH WHARTON ). Or why does a music student need to know calculus (although you have to admit the treble clef looks like an integral sign after a few beers )
These damn courses are there purely to justify forcing people to spend 4 years and oodles of money. But, what are you gonna do.

You can get a better, more well rounded education by seeing the world, or even more of your own country. If you take about 30% bs courses, that is 30% of your tuition that you could have used to travel, learn a new language in another country, do something else. But you are not allowed to have this option (unless you drop out completely).

One could say that if people werent forced to take courses in different subjects, they would never learn those subjects.
Is it any better forcing you to take them. Of course not!!!You end up with a course full of people who care nothing for the subject, but just want to get a decent grade and get it over with. So it doesnt work anyway.

But if I had never had to take anthro-bum-f******, I would never have met my beautiful wife.

So I guess they do have there place.
J

p.s. ( I think that maybe i should have taken an English Grammer class )
[This message has been edited by bumby (edited 10-04-2002).]

[This message has been edited by bumby (edited 10-04-2002).]

[This message has been edited by bumby (edited 10-04-2002).]

bumby: “I HATE EDITH WHARTON”

haha, edith wharton… what a joke. as an american, i feel the need to apologize for the fact that she ever existed. i propose an amendment to the constitution which states that all the copies of her crappy books shall be gathered and burned. we’d be hailed as heroes by society.

[This message has been edited by SThomas (edited 10-04-2002).]

Well to those who dissagree with me i’m sorry you feel that way but you’re wrong. I guess you’re just not old enough or experienced enough to really understand why we have to take courses that seem ridiculous. I know I thought that way once before, but if you stop taking it to litteral and look a litte deeper into the while thing, you should start to realize why all of these other courses are good to have. I guess the reason why I feel like this is from all the times some of my professors explained why taking all these courses that seem useless is The Right Thing. The biggest influence for me about all of this has to be this one history professor I had, Dr. Tijrena; this guy is freaking brilliant! Just 5 min talking to him and your mouth would be wide open thinking, omg this guy is a super genius. But anyway, the things he told us and how he described everything about this subject of taking all of these extra courses really made sence and set in. After that I really truly understand the point of all of this and I can see the indirect effects of these courses will have in my life from now on. Heh, now that I think about it, even the English Lit professor I have now was talking about this I think a week ago. So to those still think all of these extra “useless” classes are just that, useless, then please go speak with a few professors and let them explain it to you, or even some grad students who understand this.

for that matter, i should be able to just take all the CS and math courses i need, and graduate early.

Actually you can do that, it’s called a Trade School. If you think all of these other classes that are required is useless and don’t want to take them, then go to a trade school. Otherwise you really have no right to compain about doing all the extra work for a university degree. This is what the whole thing of ‘higher learning’ or ‘higher education’ or whatever you like to call it is about. Just learning a lot of math and programming is NOT higher learning. That would just simply be a trade. Get over it.

BTW, if I brought this post way off topic i’m sorry, sometimes I can get a little carried away.

-SirKnight

[This message has been edited by SirKnight (edited 10-04-2002).]

Anyway, taking all engineering classes seems like some sort of sadistic torture…

LOL! Ya I would have to agree on that. I’m glad you understand all of this though. Good to see others who are In The Know. Anyway, I think i’ll step down off of my soapbox on this. I feel I have explained enough. Any more would just be repeating my self.

-SirKnight

[This message has been edited by SirKnight (edited 10-04-2002).]

SirKnight: “Well to those who dissagree with me i’m sorry you feel that way but you’re wrong.”

hahaha, thanks for clearing that up for me man.

SirKnight: “If you think all of these other classes that are required is useless and don’t want to take them, then go to a trade school.”

they don’t teach math/CS/computer graphics at trade schools. if they did, i would gladly go to one, and graduate in half the time, spend half as much money, and have more knowledge related to my fields of study. hmm… but then i wouldn’t have any “higher thinking” abilities, and no employers would want to hire me. hahahah, what a joke.

Originally posted by SThomas:
but then i wouldn’t have any “higher thinking” abilities, and no employers would want to hire me. hahahah, what a joke.

One analogy that comes to mind is weight training. No doubt one that we can all relate to To properly train, you can’t simply bench press all the time. You need to work on other (less glamorous) body parts, like your back (very important). If you want a strong, stable body, you need to address all of your body. Unless you’d like monstrous biceps w/ pathetic triceps (looks really bad) or a thick chest w/ weak shoulders.

Where am I going w/ this? Well, a strong, stable brain needs to be jostled in all sorts of ways. Topics like 19th Century Russian Literature (love it) get your brain working in ways that Calculus can’t (and vice-versa). I think studying these other topics help me in my day-to-day workday when I need to solve problems quickly and in non-linear ways by giving me other avenues that my brain can traverse, looking for a solution. It makes me more creative as a whole, regardless of what I’m doing.

Boy, I feel like I’m in an interview and trying to pull something out of… But it’s true, employers DO want a well-rounded employee. Well, that’s what I gather from the two companies I’ve worked for so far.

I’m done w/ my soapbox as well. Here’s hoping that I made any sense. It’s the end of the day and this is the last thing I’m typing before heading home

Very nice analogy josip, that made perfect sence. Plus being a lifter myself, I definatly relate to it.

I guess we just wont get through to SThomas on this. But, the only way to understand this is to realize it yourself like I did. I hope you do realize it one day SThomas, if not I feel sorry for you for thinking this narrow minded. Like they always say, ‘think outside the box.’

-SirKnight

HAHAHA! You know this is kind of funny in a way. This post started out about a question of doing lighting and a problem with the shading going kaput and it ended with a discussion about the kinds of classes needed for a degree. Comical I say!

-SirKnight

Where I study most courses are CS/math related.

There’s one catch though: since CS is such a broad subject most things we learn are very general. We don’t become “experts” in anything without making our own research.

Something that really should be included is an English course. You won’t believe how many people that study with me can’t even read a technical CS book in english (which is an important thing).

Other things like history/politics/economics in a introductory level would really help developing our “brain muscles” (nice one josip ). I would definitely prefer them over some of my DBMS classes (arghhh).

Kronos/Bruno/Pedro:

Podem acrescentar outro à lista . Sou da Figueira da Foz e estudo em Coimbra.
É muito raro ver alguém escrever em português nestes forums e não ser brasileiro (também devem andar aí alguns).

Para não variar, concordo plenamente com essa proposta do glDisplacementMaps(), mas acho que a minha ATi Radeon não ia na conversa…

josip: “One analogy that comes to mind is weight training.”

damn josip, i like your analogy so much, i’m going to use it to further demonstrate my own point.

let’s say my goal is to build huge ass muscles. how much time should i spend studying calculus to accomplish my objective?

certainly, studying calculus is worthwhile, but not for building big muscles. if i really want to get huge as fast as possible, i’ll take the time i would have spent studying calculus, and instead lift weights, or doing some other exercises.

sirknight: “I guess we just wont get through to SThomas on this.”

yeah, hopefully i’ll be able to “think outside the box” and “broaden my horizons” some day. pray for my soul.

i’m actually interested in many things outside of programming, such as politics, literature, and sports. but i can pursue those interests on my own, in my free time. when i’m paying the university $60 an hour for instruction, i’d prefer that the instructors stick to the material that has a DIRECT impact on my chosen field of study. i guess that’s just my ignorance and closemindedness speaking though. in the future, i’ll try to think outside the box more.

I guess you guys dont like SThomas’s ideas, so let me put it this way:

The people in the government, police, schools and other agencies can basically be classified as people with power. Those people typically dont really produce a product. Their jobs are to make up policies. I think you understand where I’m getting at, so I’ll stop there.

So if you’re working on your BSc, you should be mature enough to decide what courses to take. Do you really need a mommy (the school board or whatever) to tell you what you need to do?

And I agree, beeing well rounded can be good. I was just surprised that he had to take language courses to get his degree (in America???).

V-man

Eh, it feels like Godfather III (right when I think I’m out…).

Large legs w/ no other body development will generate a rather freaky stature (think Popeye w/ the forearms moved to the thighs). Unless you want Olive Oil as a girlfriend, I’d work out the abs, chest, back, etc.

You also can’t cross over the analogy w/ the real world. Weight training vs. calculus wasn’t the issue. It was all leg vs. overall condition and all calculus vs. calc./non-tech. You can concentrate on certain body parts, but you can’t neglect all of the others as it’ll be detrimental to the whole.

Anyway, I’ll leave this topic as-is for fear of this turning into an episode of “Crossfire”